diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-02-20 11:10:23 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-02-20 11:10:23 -0300 |
commit | efaacc68a2539cf57fdba395598f708d366cabc9 (patch) | |
tree | 3235b55b52df00c14ab99be9eb2255e3110b860b /lib/keyringer/actions/git | |
parent | 10ec7a4f87812576f6bf3543282b49030ba77e64 (diff) | |
parent | 4b4aff2edac956224849d36fe83f826303d25efd (diff) | |
download | keyringer-efaacc68a2539cf57fdba395598f708d366cabc9.tar.gz keyringer-efaacc68a2539cf57fdba395598f708d366cabc9.tar.bz2 |
Merge tag 'upstream_keyringer_0.3' into debian
Upstream version 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" |