From 549fffc68213d9c960e2de61b294dd90f96263c4 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 4 Apr 2014 15:17:55 -0300 Subject: Fix positional arguments on commit action --- lib/keyringer/actions/commit | 4 ++++ lib/keyringer/actions/git | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/keyringer/actions') diff --git a/lib/keyringer/actions/commit b/lib/keyringer/actions/commit index 47937c2..b124927 100755 --- a/lib/keyringer/actions/commit +++ b/lib/keyringer/actions/commit @@ -7,4 +7,8 @@ LIB="`dirname $0`/../functions" source "$LIB" || exit 1 +# Fix positional arguments +shift + +# Run git command keyringer_exec git "$BASEDIR" commit $* diff --git a/lib/keyringer/actions/git b/lib/keyringer/actions/git index d4e7aa4..059b20e 100755 --- a/lib/keyringer/actions/git +++ b/lib/keyringer/actions/git @@ -10,8 +10,9 @@ source "$LIB" || exit 1 # Aditional parameters CWD="`pwd`" -# Run git command +# Fix positional arguments shift +# Run git command mkdir -p "$BASEDIR" && cd "$BASEDIR" && git $* cd "$CWD" -- cgit v1.2.3