summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/actions/commit4
-rwxr-xr-xlib/keyringer/actions/git3
2 files changed, 6 insertions, 1 deletions
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"