chiark / gitweb /
tg.sh: Set $base_remote to topgit.remote config value
authorPetr Baudis <pasky@suse.cz>
Tue, 9 Sep 2008 19:28:09 +0000 (21:28 +0200)
committerPetr Baudis <pasky@suse.cz>
Tue, 9 Sep 2008 19:28:09 +0000 (21:28 +0200)
tg.sh

diff --git a/tg.sh b/tg.sh
index 0dcb80e5f2c3f3eb526c423727661e81590d7bb2..c252a87bbb3c0efd1f01d22d38d2e3418164d958 100644 (file)
--- a/tg.sh
+++ b/tg.sh
@@ -217,6 +217,7 @@ do_help()
 set -e
 git_dir="$(git rev-parse --git-dir)"
 root_dir="$(git rev-parse --show-cdup)"; root_dir="${root_dir:-.}"
+base_remote="$(git config topgit.remote 2>/dev/null)" || :
 # make sure merging the .top* files will always behave sanely
 setup_ours
 setup_hook "pre-commit"