chiark
/
gitweb
/
~ian
/
topgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
530ace6
)
tg.sh: Set $base_remote to topgit.remote config value
author
Petr Baudis
<pasky@suse.cz>
Tue, 9 Sep 2008 19:28:09 +0000
(21:28 +0200)
committer
Petr Baudis
<pasky@suse.cz>
Tue, 9 Sep 2008 19:28:09 +0000
(21:28 +0200)
tg.sh
patch
|
blob
|
history
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"