File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ export default class ObsidianGit extends Plugin {
150
150
if ( changedFiles . length !== 0 ) {
151
151
await this . add ( ) ;
152
152
await this . commit ( ) ;
153
+ this . lastUpdate = Date . now ( ) ;
153
154
this . displayMessage ( `Committed ${ changedFiles . length } files` ) ;
154
155
} else {
155
156
this . displayMessage ( "No changes to commit" ) ;
@@ -175,14 +176,12 @@ export default class ObsidianGit extends Plugin {
175
176
}
176
177
}
177
178
await this . push ( ) ;
179
+ this . lastUpdate = Date . now ( ) ;
178
180
this . displayMessage ( `Pushed ${ allChangedFiles . length } files to remote` ) ;
179
181
} else {
180
182
this . displayMessage ( "No changes to push" ) ;
181
- this . setState ( PluginState . idle ) ;
182
183
}
183
184
}
184
-
185
- this . lastUpdate = Date . now ( ) ;
186
185
this . setState ( PluginState . idle ) ;
187
186
}
188
187
You can’t perform that action at this time.
0 commit comments