Skip to contentSkip to conversation

bitbake/fetch2/git: report actual command used instead of summary

PATCH New Koen Kooi 1 participant 1 message Feb 7, 2011

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/1 bitbake/fetch2/git: report actual command used instead of summary

This makes it easier to manually replay commands when debugging

Before:

Fetcher accessed the network with the command git clone --bare github.com/wrpseudo/pseudo.git

After:

Fetcher accessed the network with the command git clone --bare git://github.com/wrpseudo/pseudo.git /OE/downloads/git2/github.com.wrpseudo.pseudo.git

---
 bitbake/lib/bb/fetch2/git.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
bitbake/lib/bb/fetch2/git.py +1 -1
index a4a1278..c13bac9 100644
@@ -116,7 +116,7 @@ class Git(Fetch):
 
         # If the repo still doesn't exist, fallback to cloning it
         if not os.path.exists(ud.clonedir):
-            bb.fetch2.check_network_access(d, "git clone --bare %s%s" % (ud.host, ud.path))
+            bb.fetch2.check_network_access(d, "%s clone --bare %s://%s%s%s %s" % (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.clonedir))
             runfetchcmd("%s clone --bare %s://%s%s%s %s" % (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.clonedir), d)
 
         os.chdir(ud.clonedir)
Signature · 1 line
1.6.6.1