Skip to content

Commit 9e0bd1d

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(git.go): add more debug logs
1 parent b7318d0 commit 9e0bd1d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/git/git.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ func Receive(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)
9595
fingerprint := p.Get("fingerprint", nil).(string)
9696
user := p.Get("user", "").(string)
9797

98+
pkglog.Debug("receiving git repo name: %s, operation: %s, fingerprint: %s, user: %s", repoName, operation, fingerprint, user)
99+
98100
repo, err := cleanRepoName(repoName)
99101
if err != nil {
100102
log.Warnf(c, "Illegal repo name: %s.", err)
@@ -121,6 +123,9 @@ func Receive(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)
121123
}
122124
cmd.Env = append(cmd.Env, os.Environ()...)
123125

126+
pkglog.Debug("Working Dir: %s", cmd.Dir)
127+
pkglog.Debug("Environment: %s", strings.Join(cmd.Env, ","))
128+
124129
plumbCommand(cmd, channel, &errbuff)
125130

126131
if err := cmd.Start(); err != nil {

0 commit comments

Comments
 (0)