aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/git
blob: 3c4f4357640147f93261c82b9d86a0f59b028e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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"