summaryrefslogtreecommitdiff
path: root/githooks/post-rewrite
diff options
context:
space:
mode:
Diffstat (limited to 'githooks/post-rewrite')
-rwxr-xr-xgithooks/post-rewrite10
1 files changed, 10 insertions, 0 deletions
diff --git a/githooks/post-rewrite b/githooks/post-rewrite
new file mode 100755
index 0000000..a23bc51
--- /dev/null
+++ b/githooks/post-rewrite
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+gittop=$(while [ ! -d .git -a $(pwd) != "/" ]; do cd ..; done; echo $(pwd))
+
+if [ -f $gittop/.rebase-branch-name ]; then
+ rm -f $gittop/.rebase-branch-name
+ echo "Removed saved branch name file..."
+fi
+
+exit 0