Skip to content

Commit

Permalink
add enough X to fix tj#303.
Browse files Browse the repository at this point in the history
GNU mktemp requires at least three X in the last part of template.
  • Loading branch information
spacewander committed Feb 2, 2015
1 parent c5c542d commit e1cedf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/git-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ if test "$CHANGELOG" = ""; then
CHANGELOG='History.md';
fi
fi
tmp=`mktemp -t $(basename $0)`
tmp=`mktemp -t $(basename $0).XXX`
printf "$HEAD" > $tmp
git-changelog $GIT_LOG_OPTS --list >> $tmp
printf '\n' >> $tmp
printf '\n\n' >> $tmp
if [ -f $CHANGELOG ]; then cat $CHANGELOG >> $tmp; fi
mv -f $tmp $CHANGELOG
test -n "$EDITOR" && $EDITOR $CHANGELOG

0 comments on commit e1cedf7

Please sign in to comment.