We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d736a commit f872224Copy full SHA for f872224
src/git.rs
@@ -28,6 +28,9 @@ impl Commit {
28
fn lookup_rev<'rev>(repo: &'rev Repository, rev: &str) -> Result<Git2Commit<'rev>, Error> {
29
let revision = repo.revparse_single(rev)?;
30
31
+ // Update origin/master, since it might be stale
32
+ repo.find_remote("origin")?.fetch(&["master"], None, None)?;
33
+
34
// Find the merge-base between the revision and master.
35
// If revision is a normal commit contained in master, the merge-base will be the commit itself.
36
// If revision is a tag (e.g. a release version), the merge-base will contain the latest master
0 commit comments