[PATCH 2/2] Truncate the SHA1 part of the submodule name to 7 characters
- From
Peter Collingbourne <peter@pcc.me.uk>
- Date
- Apr 3, 2010, 20:04 UTC
- Message-ID
- <1270325080-22951-3-git-send-email-peter@pcc.me.uk>
- In-Reply-To
- <20100327094427.GA30216@progeny.tock>
The rationale is that a submodule naming clash is a highly infrequent event (as compared to a file naming clash) so we can minimise the ugliness of generated submodule names by using a smaller number of characters.
Signed-off-by: Peter Collingbourne <peter@pcc.me.uk> --- git-submodule.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-submodule.sh b/git-submodule.sh index 4f0d7df..e85f2d1 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -127,7 +127,7 @@ gen_uid() echo "$path" echo $$ date - ) | git hash-object --stdin + ) | git hash-object --stdin | cut -c1-7 } #
-- 1.6.5