aboutsummaryrefslogtreecommitdiffstats
path: root/repository/hash.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-21 21:42:45 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-21 21:42:45 +0100
commit905c9a90f134842b97e2cf729d8b11ff59bfd766 (patch)
treeb95b5daa443e188df2f9eb7dd80e9f4278092997 /repository/hash.go
parentf2def3a9331080a02e57710a859d2aac608ed44c (diff)
downloadgit-bug-905c9a90f134842b97e2cf729d8b11ff59bfd766.tar.gz
repository: return specific error on object not found, accept multiple namespace to push/pull
Diffstat (limited to 'repository/hash.go')
-rw-r--r--repository/hash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository/hash.go b/repository/hash.go
index 6a11558f..ad0206c3 100644
--- a/repository/hash.go
+++ b/repository/hash.go
@@ -43,7 +43,7 @@ func (h *Hash) IsValid() bool {
return false
}
for _, r := range *h {
- if (r < 'a' || r > 'z') && (r < '0' || r > '9') {
+ if (r < 'a' || r > 'f') && (r < '0' || r > '9') {
return false
}
}