bitbake-1.4/lib/bb/fetch/git.py:
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 29 Apr 2006 17:45:48 +0000 (17:45 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 29 Apr 2006 17:45:48 +0000 (17:45 +0000)
    Attachment from http://bugs.openembedded.org/attachment.cgi?id=690&action=view
    from bug #918 to fix "git fetcher: Stop clones making a checkout"

lib/bb/fetch/git.py

index f30ae23..49235c1 100644 (file)
@@ -129,7 +129,7 @@ class Git(Fetch):
                     os.chdir(repodir)
                     rungitcmd("tar -xzf %s" % (repofile),d)
                 else:
-                    rungitcmd("git clone %s://%s%s %s" % (proto, host, path, repodir),d)
+                    rungitcmd("git clone -n %s://%s%s %s" % (proto, host, path, repodir),d)
 
             os.chdir(repodir)
             rungitcmd("git pull %s://%s%s" % (proto, host, path),d)