[packages/crossnacl-binutils] - fetch only master branch

draenog draenog at pld-linux.org
Sat Jul 7 11:13:57 CEST 2012


commit 8a75c0d47acb931047296b6bdcc33af291c1ddd7
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Fri Jul 6 21:59:00 2012 +0000

    - fetch only master branch
    
    Changed files:
        get-source.sh -> 1.4

 get-source.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/get-source.sh b/get-source.sh
index 486e7d7..d4ccd3f 100644
--- a/get-source.sh
+++ b/get-source.sh
@@ -32,9 +32,9 @@ if [ ! -d $package ]; then
 	install -d $package
 	git init
 	git remote add origin $repo_url
-	git fetch --depth 1
+	git fetch --depth 1 origin refs/heads/master:refs/remotes/origin/master
 else
-	git fetch
+	git fetch origin refs/heads/master:refs/remotes/origin/master
 fi
 
 # get src/native_client/tools/REVISIONS directly from svn


More information about the test mailing list