Permalink
Browse files

git-svn-migrate: minor improvement of file cleanup when making the re…

…po bare
  • Loading branch information...
1 parent b07009c commit de01e7a70b1d5c5a7e78224edaa80239006ae11d @marta- marta- committed Aug 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 source.sh
View
@@ -481,7 +481,7 @@ function git-svn-migrate {
echo -n -e "\033[0m"
if [[ $bare != "n" ]]
then
- echo -e "Deleting local files..." && rm -rf `ls -A1 | grep -i -v .git` &&
+ echo -e "Deleting local files..." && rm -rf `ls -A1 | grep -i -v ^.git$` &&
echo -e "Moving repository information..." && mv -f .git/* . && rm -rf .git/ &&
echo -e "Setting repository as bare..." && sed -e "s/bare = false/bare = true/g" -i config
fi

0 comments on commit de01e7a

Please sign in to comment.