aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/git
blob: d4e7aa439d1842dcd2b8e1acaa66939586b5155c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# Git wrapper.
#

# Load functions
LIB="`dirname $0`/../functions"
source "$LIB" || exit 1

# Aditional parameters
CWD="`pwd`"

# Run git command
shift

mkdir -p "$BASEDIR" && cd "$BASEDIR" && git $*
cd "$CWD"