diff options
author | MrRJ45 <couton@gmail.com> | 2015-03-31 14:18:01 +0100 |
---|---|---|
committer | MrRJ45 <couton@gmail.com> | 2015-03-31 14:18:01 +0100 |
commit | 83289c09262a7b248826edfde37c2a8a30baf4c0 (patch) | |
tree | 9fadf31f191f4754f3c2e31c84c699ab40876972 | |
parent | ff43ef0e434c464adbdea66212edce67319d8af7 (diff) |
Some Git libraries cant see initial commit
Using some libraries, in this case pygit2 the initial commit cannot be seen, a change and new commit fixes this.
Adding index.write appears to be a simple fix, as confirmed in this rugged issue:
https://github.com/libgit2/rugged/issues/441
-rw-r--r-- | lib/oxidized/output/git.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb index d5eb8e7..e9256e8 100644 --- a/lib/oxidized/output/git.rb +++ b/lib/oxidized/output/git.rb @@ -99,6 +99,7 @@ class Git < Output :parents => repo.empty? ? [] : [repo.head.target].compact, :update_ref => 'HEAD', ) + index.write end end end |