summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@ratatosk.fluxo.info>2014-04-04 15:17:55 -0300
committerrhatto <rhatto@ratatosk.fluxo.info>2014-04-04 15:17:55 -0300
commit549fffc68213d9c960e2de61b294dd90f96263c4 (patch)
tree030eeddd3005f08c91dff2f2e8638e0f0a5476a7
parent9c18956f82916ff9da2e6a718d2ae208778dab76 (diff)
downloadkeyringer-549fffc68213d9c960e2de61b294dd90f96263c4.tar.gz
keyringer-549fffc68213d9c960e2de61b294dd90f96263c4.tar.bz2
Fix positional arguments on commit action
-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"