summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorAidan Nulman <[email protected]>2014-02-24 03:05:44 -0500
committerAidan Nulman <[email protected]>2014-02-24 03:05:44 -0500
commit2656a72e823e16451480b7858213f6e3cb8bb2fd (patch)
treee31656bc81965c4d18864d8305f2f6ff65fd627a /commit.go
parentdecaf064f9ace275789657343d5123ee5290ea31 (diff)
parentc6d1bde37cc7f3bd213fc182fd9f60a7cd685419 (diff)
Merge branch 'master' into custom_odb
Conflicts: git.go reference.go repository.go submodule.go
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/commit.go b/commit.go
index 498669e..0c64c76 100644
--- a/commit.go
+++ b/commit.go
@@ -94,6 +94,11 @@ func (v *Signature) Offset() int {
}
func (sig *Signature) toC() *C.git_signature {
+
+ if sig == nil {
+ return nil
+ }
+
var out *C.git_signature
name := C.CString(sig.Name)