Skip to content

Commit

Permalink
Merge pull request #29 from autentia/fix/get-commits-without-patch-pa…
Browse files Browse the repository at this point in the history
…rameter

fix: get commit when pushing a tag without patch mode
  • Loading branch information
ssubijana authored Jun 15, 2023
2 parents 38e5a36 + 243b078 commit 12bfab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ then
tag=$(git tag --points-at $local_sha | xargs)
if [ -n "$tag" ]
then
git log --pretty="format:%H;%aI;%an <%ae>;tag: ${tag}" -1 -U $local_sha 1> $filename
git log --pretty="format:%H;%aI;%an <%ae>;tag: ${tag}" -1 --no-patch $local_sha 1> $filename
git_exit=$?
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion TNTGitHook/misc/tnt_git_hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ then
tag=$(git tag --points-at $local_sha | xargs)
if [ -n "$tag" ]
then
git log --pretty="format:%H;%aI;%an <%ae>;tag: ${tag}" -1 -U $local_sha 1> $filename
git log --pretty="format:%H;%aI;%an <%ae>;tag: ${tag}" -1 --no-patch $local_sha 1> $filename
git_exit=$?
fi
fi
Expand Down

0 comments on commit 12bfab9

Please sign in to comment.