Skip to content

Commit

Permalink
fix 2083 supportsArchive can be changed with nothing beeing cloned
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin GILLE committed Jan 11, 2017
1 parent e48cd2a commit 7e5646c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ export default class Git {
}

// `git archive` only accepts a treeish and we have no ref to this commit
this.supportsArchive = false;
if (this.supportsArchive) {
this.supportsArchive = false;
await this.fetch();
}
return this.ref = this.hash = hash;
}

Expand Down

0 comments on commit 7e5646c

Please sign in to comment.