aboutsummaryrefslogtreecommitdiffhomepage
path: root/git-remote-gcrypt
diff options
context:
space:
mode:
Diffstat (limited to 'git-remote-gcrypt')
-rwxr-xr-xgit-remote-gcrypt20
1 files changed, 19 insertions, 1 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index ba75f09..3d4cec5 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -934,5 +934,23 @@ then
exit 100
fi
else
- gcrypt_main_loop "$@"
+ for i
+ do
+ case "$1" in
+ -*)
+ # ignore arbitrary options passed by git
+ shift
+ ;;
+ *)
+ # first argument is name, second is url
+ if [ -n "$name" ]; then
+ name="$1"
+ else
+ url="$1"
+ fi
+ shift
+ ;;
+ esac
+ done
+ gcrypt_main_loop "$name" "$url"
fi