Skip to content

Commit 5251fe0

Browse files
authored
Include git comamnd (and directory) in git verbose output (#2353)
Otherwise we can't see the actual command being run (e.g. fetch / ls-remote etc)
1 parent cda0b72 commit 5251fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/gitutil/gitutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (g *GitLocalRunner) run(ctx context.Context, verbose bool, command string,
113113
}
114114

115115
if g.Debug {
116-
_, _ = fmt.Fprintf(os.Stderr, "[%s]\n", strings.Join(args, ","))
116+
_, _ = fmt.Fprintf(os.Stderr, "[git -C %s %s]\n", g.Dir, strings.Join(fullArgs, " "))
117117
}
118118
start := time.Now()
119119
err := cmd.Run()

0 commit comments

Comments
 (0)