Skip to content

Commit

Permalink
fetchTree/fetchGit: fix ref not respected when rev is set
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau committed Dec 27, 2023
1 parent e23983d commit 8ac15fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libfetchers/git.cc
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,6 @@ struct GitInputScheme : InputScheme
auto fetchRef =
getAllRefsAttr(input)
? "refs/*"
: input.getRev()
? input.getRev()->gitRev()
: ref.compare(0, 5, "refs/") == 0
? ref
: ref == "HEAD"
Expand Down

0 comments on commit 8ac15fa

Please sign in to comment.