Skip to content

Commit

Permalink
Cleanup default refs
Browse files Browse the repository at this point in the history
Use a better set of refs as defaults when syncing repositories
  • Loading branch information
michaeljs1990 committed Jan 26, 2019
1 parent c7c7e70 commit d9fe4c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ func syncRepo(r repo) error {
refspec = append(refspec, gconfig.RefSpec(ref))
}
} else {
refspec = append(refspec, gconfig.RefSpec("refs/heads/*:refs/remotes/heads/*"))
refspec = append(refspec, gconfig.RefSpec("refs/tags/*:refs/remotes/tags/*"))
refspec = append(refspec, gconfig.RefSpec("refs/heads/*:refs/heads/*"))
refspec = append(refspec, gconfig.RefSpec("refs/tags/*:refs/tags/*"))
}

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

// Handle hot config reloads on SIGHUP
// Signal handling
signals := make(chan os.Signal, 10)
signal.Notify(signals, syscall.SIGUSR1, syscall.SIGUSR2)
go handleSignals(signals, *conf, queue)
Expand Down

0 comments on commit d9fe4c6

Please sign in to comment.