From 83289c09262a7b248826edfde37c2a8a30baf4c0 Mon Sep 17 00:00:00 2001 From: MrRJ45 Date: Tue, 31 Mar 2015 14:18:01 +0100 Subject: 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 --- lib/oxidized/output/git.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized/output') 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 -- cgit v1.2.1