Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
fix(git): Correctly read in the HEAD ref after cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna authored and zkat committed Apr 16, 2017
1 parent ddce561 commit dbe1b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function updateSubmodules (localRepo, opts) {

function headSha (repo, opts) {
opts = optCheck(opts)
return execGit(['rev-parse', '--revs-only', 'HEAD', repo], {}, opts).spread(stdout => {
return execGit(['rev-parse', '--revs-only', 'HEAD'], {cwd: repo}, opts).spread(stdout => {
return stdout.trim()
})
}
Expand Down

0 comments on commit dbe1b15

Please sign in to comment.