summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-04-12 18:35:09 +0200
committerGravatar Tom Willemse2014-04-12 18:35:09 +0200
commitdf9c164a18e1b416a65222d4dfb39581cb53d49a (patch)
tree56fe22ba2a43467bdf551655d45ac6b7300eb49d
parentf5b218e0bec2d0ebbd0eae0c9cbdcefc878ebebd (diff)
downloadpush-remotes-master.tar.gz
push-remotes-master.zip
Use the realpath of the git directoryHEADmaster
-rwxr-xr-xpush-remotes2
1 files changed, 1 insertions, 1 deletions
diff --git a/push-remotes b/push-remotes
index 6720312..ec63a3b 100755
--- a/push-remotes
+++ b/push-remotes
@@ -11,7 +11,7 @@
function _git() { git --git-dir="$gitdir" "$@"; }
-gitdir="$1"
+gitdir=$(realpath "$1")
remotes=$(_git remote)
if [[ -n "$remotes" ]]; then