Skip to content

Commit 6c1a039

Browse files
guillep2klafriks
andauthored
Update models/repo_watch.go
Co-Authored-By: Lauris BH <[email protected]>
1 parent c0226f2 commit 6c1a039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo_watch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func watchRepoMode(e Engine, watch Watch, mode RepoWatchMode) (err error) {
6060
if watch.Mode == mode {
6161
return nil
6262
}
63-
if mode == RepoWatchModeAuto && isWatchMode(watch.Mode) {
63+
if mode == RepoWatchModeAuto && (watch.Mode == RepoWatchModeDont || isWatchMode(watch.Mode)) {
6464
// Don't auto watch if already watching
6565
return nil
6666
}

0 commit comments

Comments
 (0)