Permalink
Browse files

patch.sh: for checkout in case of unclean trees

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
1 parent b104ef6 commit 9c6d0f5c2b58f78ef468824ddc318dd76d898f7d @koenkooi koenkooi committed Apr 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 patch.sh
View
@@ -55,7 +55,7 @@ git branch -D tmp-patching-branch-sha &>/dev/null || true
#Do we have the tag?
git tag | grep ${TAG} | grep -v rc >/dev/null || git_pull_torvalds
-git checkout ${TAG} -b tmp-patching-branch
+git checkout -f ${TAG} -b tmp-patching-branch
if [ "${EXTERNAL_TREE}" ] ; then
#we are pulling the external tree into 1st branch, and checkout the SHA into a 2nd,

0 comments on commit 9c6d0f5

Please sign in to comment.