Skip to content

Commit 0ca0318

Browse files
committed
Remove dots from SHA
Some older versions of Git were adding '...' to the abbreviated version of commit hash.
1 parent b08f814 commit 0ca0318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-fmt-diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# globals {{{
77

88
gc_prog_name="fmt-diff"
9-
gc_version="1.0.1-1-gc914037+1"
9+
gc_version="1.0.1-4-master"
1010

1111
g_cached_opt=
1212

@@ -362,7 +362,7 @@ git_diff () (
362362
)
363363

364364
git_retrieve_file_from_sha () (
365-
sha="$1"
365+
sha="${1%%.*}"
366366
file="$2"
367367

368368
debug "sha = '$sha'"

0 commit comments

Comments
 (0)