aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/git/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/git/git.go')
-rw-r--r--pkg/git/git.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/git/git.go b/pkg/git/git.go
index 77a2630f2..812f919c8 100644
--- a/pkg/git/git.go
+++ b/pkg/git/git.go
@@ -58,14 +58,13 @@ func Poll(dir, repo, branch string) (*Commit, error) {
}
// CheckoutBranch checkouts the specified repository/branch in dir.
-// It does not fetch history and efficiently supports checkouts of different repos in the same dir.
func CheckoutBranch(dir, repo, branch string) (*Commit, error) {
if _, err := runSandboxed(dir, "git", "reset", "--hard"); err != nil {
if err := initRepo(dir); err != nil {
return nil, err
}
}
- _, err := runSandboxed(dir, "git", "fetch", "--no-tags", "--depth=1", repo, branch)
+ _, err := runSandboxed(dir, "git", "fetch", repo, branch)
if err != nil {
return nil, err
}