From 7e5646cd932c676b3bde969be0945431dd61e32d Mon Sep 17 00:00:00 2001 From: Colin GILLE Date: Thu, 22 Dec 2016 15:36:27 +0100 Subject: [PATCH] fix 2083 supportsArchive can be changed with nothing beeing cloned --- src/util/git.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/git.js b/src/util/git.js index 495206cdf9..7713c83fac 100644 --- a/src/util/git.js +++ b/src/util/git.js @@ -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; }