Skip to content

Commit

Permalink
master: git_commit.sh: change so works on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbell committed Jul 14, 2024
1 parent dbf9eaa commit 286ef91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ $branch:
EOF
git status --porcelain | sed -e 's|^|# |' >> temp.log
$EDITOR temp.log
sed -i temp.log -e '/^#/d'
sed -i -e '/^#/d' temp.log
if ! head -1 temp.log | grep "^$branch:" > /dev/null
then
echo "Aborting because first line does not begin with $branch:"
Expand Down

0 comments on commit 286ef91

Please sign in to comment.