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 84dc5dc commit 5d7a06bCopy full SHA for 5d7a06b
src/cargo/sources/git/utils.rs
@@ -1417,6 +1417,14 @@ fn github_fast_path(
1417
return Ok(FastPathRev::UpToDate);
1418
}
1419
1420
+ // If `rev` is a full commit hash, the only thing it can resolve
1421
+ // to is itself. Don't bother talking to GitHub in that case
1422
+ // either. (This ensures that we always attempt to fetch the
1423
+ // commit directly even if we can't reach the GitHub API.)
1424
+ if let Ok(oid) = rev.parse() {
1425
+ debug!("github fast path is already a full commit hash {rev}");
1426
+ return Ok(FastPathRev::NeedsFetch(oid));
1427
+ }
1428
rev
1429
} else {
1430
debug!("can't use github fast path with `rev = \"{}\"`", rev);
0 commit comments