File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,17 @@ var path = require('path');
3
3
var gitUrlParse = require ( 'git-url-parse' ) ;
4
4
var getRemoteOrigin = require ( 'remote-origin-url' ) ;
5
5
6
+ /**
7
+ * Sometimes git will [pack refs](https://git-scm.com/docs/git-pack-refs)
8
+ * in order to save space on disk and
9
+ * duck under limits of numbers of files in folders. CircleCI in particular
10
+ * does this by default. This method parses that `packed-refs` file
11
+ *
12
+ * @private
13
+ * @param {string } packedRefs string contents of the packed refs file
14
+ * @param {string } branchName the branch name to resolve to
15
+ * @returns {string } sha hash referring to current tree
16
+ */
6
17
function parsePackedRefs ( packedRefs , branchName ) {
7
18
return packedRefs . split ( / \n / )
8
19
. filter ( function ( line ) {
You can’t perform that action at this time.
0 commit comments