Sfoglia il codice sorgente

bug fixes of git-add-bare-rep

pull/1/head
10sr 12 anni fa
parent
commit
3e0c189312
1 ha cambiato i file con 12 aggiunte e 11 eliminazioni
  1. +12
    -11
      .bashrc

+ 12
- 11
.bashrc Vedi File

@@ -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(){


Caricamento…
Annulla
Salva