From 8c2ae1af370a82be732f9a78b4ef51289cf665e9 Mon Sep 17 00:00:00 2001 From: JenTing Hsiao Date: Fri, 26 Aug 2022 06:12:22 +0000 Subject: [PATCH] DEBUG Signed-off-by: JenTing Hsiao --- components/content-service/pkg/initializer/git.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/content-service/pkg/initializer/git.go b/components/content-service/pkg/initializer/git.go index 13e9438d023219..b90bbbea22d204 100644 --- a/components/content-service/pkg/initializer/git.go +++ b/components/content-service/pkg/initializer/git.go @@ -131,6 +131,14 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping) } span.SetTag("cerr", cerr) log.Infof("cerr: %v", cerr) + + cmd = exec.Command("ls", "-al", ws.Location) + res, _ = cmd.CombinedOutput() + log.Infof("ls -al %s: %v", ws.Location, res) + + cmd = exec.Command("ls", "-al", ws.Location+".git/") + res, _ = cmd.CombinedOutput() + log.Infof("ls -al %s: %v", ws.Location+".git/", res) } if err := ws.realizeCloneTarget(ctx); err != nil { return src, xerrors.Errorf("git initializer clone: %w", err)