After changing git2 crate from 0.13 to 0.15 it compiled correctly and run without problem in my system with libgit2 1:1.5.0-1.
Looking up the Cargo.lock file, it now uses libgit2-sys "0.14.0+1.5.0", witch should work with both 0.14 and 0.15 system versions.
After changing git2 crate from 0.13 to 0.15 it compiled correctly and run without problem in my system with libgit2 1:1.5.0-1. Looking up the Cargo.lock file, it now uses libgit2-sys "0.14.0+1.5.0", witch should work with both 0.14 and 0.15 system versions.