[packages/crossnacl-gcc] use bare git repo
glen
glen at pld-linux.org
Wed Oct 3 19:39:54 CEST 2012
commit a6cd2124bc6b2fb570ccddad4deee1c0ec362542
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Sep 13 22:31:04 2012 +0300
use bare git repo
get-source.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/get-source.sh b/get-source.sh
index 134cc03..804feb7 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -34,11 +34,11 @@ test -e DEPS.py || svn cat http://src.chromium.org/chrome/branches/$chrome_branc
nacl_revision=$(awk -F'"' '/nacl_revision.:/{print $4}' DEPS.py)
test -n "$nacl_revision"
-export GIT_DIR=$package/.git
+export GIT_DIR=$package.git
-if [ ! -d $package ]; then
- install -d $package
- git init
+if [ ! -d $GIT_DIR ]; then
+ install -d $GIT_DIR
+ git init --bare
git remote add origin $repo_url
git fetch --depth $depth origin refs/heads/master:refs/remotes/origin/master
else
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossnacl-gcc.git/commitdiff/bae6856c4c54f72eb51080b8ae8b90db2bb437b5
More information about the pld-cvs-commit
mailing list