lib/bb/fetch/git.py:
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 29 Apr 2006 10:13:18 +0000 (10:13 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Sat, 29 Apr 2006 10:13:18 +0000 (10:13 +0000)
- git clone now makes a checkout by default. Disable this.

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)