summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-03-19 03:51:59 +0100
committerCarlos Martín Nieto <[email protected]>2014-03-19 03:58:02 +0100
commitb82a72a9ce4701a4560288c4ebf1511ffb415b80 (patch)
tree1b9f3b6649170bbd4c4b6f74c55587f505f498b9 /git.go
parent0bb73e43a8f26be8608cdd304d73cacb05753417 (diff)
Oid: fix IsZero()
We need to compare against the number zero, not its ASCII value.
Diffstat (limited to 'git.go')
-rw-r--r--git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.go b/git.go
index e5fe812..b20f993 100644
--- a/git.go
+++ b/git.go
@@ -88,7 +88,7 @@ func (oid *Oid) Equal(oid2 *Oid) bool {
func (oid *Oid) IsZero() bool {
for _, a := range oid {
- if a != '0' {
+ if a != 0 {
return false
}
}