mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 13:30:26 +00:00
explictly fail if git can't operate (#194)
* explictly fail if git can't operate * Update revision.go
This commit is contained in:
parent
9a458a78a6
commit
96d7401f5f
@ -63,8 +63,10 @@ func (stream *recentChangesStream) next(n int) []Revision {
|
|||||||
// currHash is the last revision from the last call, so skip it
|
// currHash is the last revision from the last call, so skip it
|
||||||
args = append(args, "--skip=1", stream.currHash)
|
args = append(args, "--skip=1", stream.currHash)
|
||||||
}
|
}
|
||||||
// I don't think this can fail, so ignore the error
|
res, err := gitLog(args...)
|
||||||
res, _ := gitLog(args...)
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
if len(res) != 0 {
|
if len(res) != 0 {
|
||||||
stream.currHash = res[len(res)-1].Hash
|
stream.currHash = res[len(res)-1].Hash
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user