[X2Go-Commits] [maintenancescripts] 06/10: git/hooks/common.sh: fix bug in common.sh: also use basename to retrieve project name for non-bare archives.
git-admin at x2go.org
git-admin at x2go.org
Mon Feb 23 21:34:42 CET 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository maintenancescripts.
commit c906bf3eda93a27118e50c48a3f2eebe36716295
Author: Mihai Moldovan <ionic at ionic.de>
Date: Mon Feb 23 21:26:55 2015 +0100
git/hooks/common.sh: fix bug in common.sh: also use basename to retrieve project name for non-bare archives.
---
git/hooks/common.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git/hooks/common.sh b/git/hooks/common.sh
index f973c5c..9cf0882 100755
--- a/git/hooks/common.sh
+++ b/git/hooks/common.sh
@@ -6,7 +6,7 @@ if [ "$(git rev-parse --is-bare-directory)" = "true" ]; then
GIT_REPO_NAME="$(basename "${PWD}")"
OUTSIDE_REPO="/../"
else
- GIT_REPO_NAME="$(readlink -nf "${PWD}/..")"
+ GIT_REPO_NAME="$(basename "$(readlink -nf "${PWD}/..")")"
OUTSIDE_REPO="/../../"
fi
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
More information about the x2go-commits
mailing list