Skip to content

Commit

Permalink
Merge pull request #71 from zanetumg/master
Browse files Browse the repository at this point in the history
feat: add env var OBSIDIAN_GIT for scripting
  • Loading branch information
Vinzent03 authored May 2, 2021
2 parents 781b482 + 2b76097 commit b9ab82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default class ObsidianGit extends Plugin {

async push(): Promise<void> {
this.setState(PluginState.push);
await this.git.push(
await this.git.env({ ...process.env, "OBSIDIAN_GIT": 1 }).push(
(err: Error | null) => {
err && this.displayError(`Push failed ${err.message}`);
}
Expand Down

0 comments on commit b9ab82a

Please sign in to comment.