[packages/crossnacl-binutils] use bare git repo
glen
glen at pld-linux.org
Sat Sep 15 00:46:14 CEST 2012
commit e018238380b5cc1ce1b88c91b95907baf0efdfee
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Sep 13 22:14:57 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 97d05ef..c7a9c68 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -29,11 +29,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 1 origin refs/heads/master:refs/remotes/origin/master
else
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossnacl-binutils.git/commitdiff/656f9f48be06a67600b98327d3e055de8b763c19
More information about the pld-cvs-commit
mailing list