Remove unused var (${remote})
This commit is contained in:
parent
e1e9ea0cff
commit
25b305a8fd
1 changed files with 1 additions and 3 deletions
|
@ -9,7 +9,6 @@ git="${localbase}"/bin/git
|
||||||
mode="u=rwX,g=rX,o="
|
mode="u=rwX,g=rX,o="
|
||||||
gitdir="$1"
|
gitdir="$1"
|
||||||
branch="$2"
|
branch="$2"
|
||||||
remote="origin"
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# functions
|
# functions
|
||||||
|
@ -33,11 +32,10 @@ if [ ! -e "${gitdir}/.git" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Set new branch: %s\n" "${branch}"
|
|
||||||
set -x
|
set -x
|
||||||
cd "${gitdir}"
|
cd "${gitdir}"
|
||||||
gitexec "fetch origin"
|
gitexec "fetch origin"
|
||||||
gitexec "checkout ${branch}" ||
|
gitexec "checkout ${branch}" ||
|
||||||
gitexec "checkout -t origin/${branch}"
|
gitexec "checkout -t origin/${branch}"
|
||||||
set +x
|
set +x
|
||||||
printf "New branch: %s\n" "${branch}"
|
printf "[-] New branch: %s\n" "${branch}"
|
||||||
|
|
Loading…
Reference in a new issue