Skip to content

Commit 30382f4

Browse files
committed
fix: 🐛 update commit retrieval method to ensure valid sha
1 parent 43fa0d8 commit 30382f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gitutils/_git-getcommit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ if [ -z "$sha" ]; then
2626
fi
2727

2828
#### Display commit to fixup, keep only the sha, remove new line
29-
echo $sha | cut -d' ' -f1 | tr -d '\n'
29+
git rev-parse --verify "$sha^{commit}" | cut -d' ' -f1 | tr -d '\n'

0 commit comments

Comments
 (0)