[packages/crossnacl-newlib] use bare git repo

glen glen at pld-linux.org
Sun Sep 30 17:11:13 CEST 2012


commit 80fb32c5c8efb11d3c2ae67caf04a6468c23a53f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 13 22:11:32 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 afca054..29c8c7a 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 $depth} origin refs/heads/master:refs/remotes/origin/master
 else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossnacl-newlib.git/commitdiff/f75c5be37302238a3748069146fc3567a10914ae



More information about the pld-cvs-commit mailing list