We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2972ca commit 4110d96Copy full SHA for 4110d96
docs/.obsidian/plugins/docs-viewer/main.js
@@ -154,6 +154,14 @@ class DocsViewerPlugin extends obsidian.Plugin {
154
try {
155
const vaultPath = this.app.vault.adapter.basePath;
156
157
+ // Fetch from remote
158
+ new obsidian.Notice('Fetching latest changes...');
159
+ await execPromise('git fetch', { cwd: vaultPath });
160
+
161
+ // Pull from remote
162
+ new obsidian.Notice('Pulling latest changes...');
163
+ await execPromise('git pull', { cwd: vaultPath });
164
165
// Add all changes
166
await execPromise('git add .', { cwd: vaultPath });
167
0 commit comments