We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda8384 commit eec45e8Copy full SHA for eec45e8
1 file changed
pkg/gitreceive/build.go
@@ -45,7 +45,12 @@ func mcCmd(configDir string, args ...string) *exec.Cmd {
45
46
// run prints the command it will execute to the debug log, then runs it and returns the result of run
47
func run(cmd *exec.Cmd) error {
48
- log.Debug("running [%s] in directory %s", strings.Join(cmd.Args, " "), cmd.Dir)
+ cmdStr := strings.Join(cmd.Args, " ")
49
+ if cmd.Dir != "" {
50
+ log.Debug("running [%s] in directory %s", cmdStr, cmd.Dir)
51
+ } else {
52
+ log.Debug("runninng [%s]", cmdStr)
53
+ }
54
return cmd.Run()
55
}
56
0 commit comments