summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-rewrite-branch2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-rewrite-branch b/git-rewrite-branch
index 429070f..59f3597 100755
--- a/git-rewrite-branch
+++ b/git-rewrite-branch
@@ -83,7 +83,7 @@ commit2id() {
if [[ $branch == $ibranch ]] && ! $hastag; then
printf '%s\n' "$commit"
else
- git log "$branch" -n1 --pretty=formtat:'%B' "$commit" | sed -n "s|^\s*${tag}: ||p"
+ git log "$branch" -n1 --pretty=format:'%B' "$commit" | sed -n "s|^\s*${tag}: ||p"
fi
}