From 3e0c1893129e60aecb6da9506c2336acca93b0a9 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 14 Dec 2011 19:28:58 +0900 Subject: [PATCH] bug fixes of git-add-bare-rep --- .bashrc | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.bashrc b/.bashrc index 301ba14..73f2f3e 100755 --- a/.bashrc +++ b/.bashrc @@ -98,17 +98,18 @@ git-add-bare-rep(){ } 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(){