Skip to content

Commit

Permalink
fetchGit: use "HEAD" as default ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzWill committed Feb 28, 2018
1 parent 4c13b15 commit 51efd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/primops/fetchGit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
ref = "HEAD"s;
}

if (!ref) ref = "master"s;
if (!ref) ref = "HEAD"s;

if (rev != "" && !std::regex_match(rev, revRegex))
throw Error("invalid Git revision '%s'", rev);
Expand Down

1 comment on commit 51efd3b

@shlevy
Copy link

@shlevy shlevy commented on 51efd3b Feb 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.