Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit b68cb7a

Browse files
authored
remove --remote=origin to avoid pulling commits that are not part of the default branch. (#61)
Signed-off-by: Ibrahim Mbaziira <[email protected]> Signed-off-by: Ibrahim Mbaziira <[email protected]>
1 parent ceb3823 commit b68cb7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/git/git.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,8 +1626,8 @@ func (j *DSGit) ParseGitLog(ctx *shared.Ctx) (cmd *exec.Cmd, err error) {
16261626
j.log.WithFields(logrus.Fields{"operation": "ParseGitLog"}).Debugf("parsing logs from %s", j.GitPath)
16271627
}
16281628
// Example full command line:
1629-
// LANG=C PAGER='' git log --reverse --topo-order --branches --tags --remotes=origin --no-color --decorate --raw --numstat --pretty=fuller --decorate=full --parents -M -C -c
1630-
cmdLine := []string{"git", "log", "--reverse", "--topo-order", "--branches", "--tags", "--remotes=origin"}
1629+
// LANG=C PAGER='' git log --reverse --topo-order --branches --tags --no-color --decorate --raw --numstat --pretty=fuller --decorate=full --parents -M -C -c
1630+
cmdLine := []string{"git", "log", "--reverse", "--topo-order", "--branches", "--tags"}
16311631
cmdLine = append(cmdLine, GitLogOptions...)
16321632
if ctx.DateFrom != nil {
16331633
cmdLine = append(cmdLine, "--since="+shared.ToYMDHMSDate(*ctx.DateFrom))

0 commit comments

Comments
 (0)