Skip to content

Commit

Permalink
fix huge bug with update.sh
Browse files Browse the repository at this point in the history
It deletes the content of the .git directory
  • Loading branch information
Grégoire Paris committed Sep 11, 2013
1 parent f7d4c70 commit a984a2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ main()
then
echo "This script is supposed to be run at the root of a git repository" >&2
fi
rsync -avzC --exclude="update.sh" $PROGDIR/ .git --delete
rsync -avzC --exclude="update.sh" $PROGDIR/hooks/ .git/hooks --delete
rsync -avzC --exclude="update.sh" $PROGDIR/ .git
}
main

0 comments on commit a984a2f

Please sign in to comment.