Skip to content

Commit d9fe4c6

Browse files
committed
Cleanup default refs
Use a better set of refs as defaults when syncing repositories
1 parent c7c7e70 commit d9fe4c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ func syncRepo(r repo) error {
347347
refspec = append(refspec, gconfig.RefSpec(ref))
348348
}
349349
} else {
350-
refspec = append(refspec, gconfig.RefSpec("refs/heads/*:refs/remotes/heads/*"))
351-
refspec = append(refspec, gconfig.RefSpec("refs/tags/*:refs/remotes/tags/*"))
350+
refspec = append(refspec, gconfig.RefSpec("refs/heads/*:refs/heads/*"))
351+
refspec = append(refspec, gconfig.RefSpec("refs/tags/*:refs/tags/*"))
352352
}
353353

354354
// This is a little silly since if it's up to date it still returns
@@ -678,7 +678,7 @@ func main() {
678678
go feedChannel(queue, *oneshot)
679679
launchWorkers(*workers, &wg, queue)
680680

681-
// Handle hot config reloads on SIGHUP
681+
// Signal handling
682682
signals := make(chan os.Signal, 10)
683683
signal.Notify(signals, syscall.SIGUSR1, syscall.SIGUSR2)
684684
go handleSignals(signals, *conf, queue)

0 commit comments

Comments
 (0)