Browse Source

bug fixes of git-add-bare-rep

pull/1/head
10sr 13 years ago
parent
commit
3e0c189312
1 changed files with 12 additions and 11 deletions
  1. +12
    -11
      .bashrc

+ 12
- 11
.bashrc View File

@@ -98,17 +98,18 @@ git-add-bare-rep(){
} }


dir="${__MYGITBAREREP}/$2.git" dir="${__MYGITBAREREP}/$2.git"
git-make-bare-rep $2 &&
git remote add $1 "$dir"
git remote -v

# if test -d "$dir"
# then
# git remote add $1 "$dir"
# git remote -v
# else
# echo "dir $dir does not exist!" 1>&2
# fi

# git-make-bare-rep $2 &&
# git remote add $1 "$dir"
# git remote -v

if test -d "$dir"
then
git remote add $1 "$dir"
git remote -v
else
echo "dir $dir does not exist!" 1>&2
fi
} }


bak(){ bak(){


Loading…
Cancel
Save