diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-02-20 11:10:22 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-02-20 11:10:22 -0300 |
commit | 4b4aff2edac956224849d36fe83f826303d25efd (patch) | |
tree | ed8446593f57b091730a40ea93c626548c7328dc /lib/keyringer/actions/git | |
parent | 5f1590e0722ee5ee9fed2ccc43adfb88f00218fd (diff) | |
parent | 013726598e074399344c0bf435e057bc8049959a (diff) | |
download | keyringer-4b4aff2edac956224849d36fe83f826303d25efd.tar.gz keyringer-4b4aff2edac956224849d36fe83f826303d25efd.tar.bz2 |
Imported Upstream version 0.3upstream_keyringer_0.3
Diffstat (limited to 'lib/keyringer/actions/git')
-rwxr-xr-x | lib/keyringer/actions/git | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/keyringer/actions/git b/lib/keyringer/actions/git index 3c4f435..108ccea 100755 --- a/lib/keyringer/actions/git +++ b/lib/keyringer/actions/git @@ -12,5 +12,13 @@ CWD="`pwd`" # Run git command shift -mkdir -p "$BASEDIR" && cd "$BASEDIR" && git $* + +# Set working folder +if [ ! -z "$RELATIVE_PATH" ]; then + WORK="$KEYDIR/$RELATIVE_PATH" +else + WORK="$BASEDIR" +fi + +mkdir -p "$WORK" && cd "$WORK" && git $* cd "$CWD" |