diff --git a/lib/resolve/resolvers/GitRemoteResolver.js b/lib/resolve/resolvers/GitRemoteResolver.js index 799fd859..c8022a34 100644 --- a/lib/resolve/resolvers/GitRemoteResolver.js +++ b/lib/resolve/resolvers/GitRemoteResolver.js @@ -95,7 +95,7 @@ GitRemoteResolver.prototype._resolveTarget = function () { branches = Object.keys(heads); errorDetails = !branches.length ? 'No branches found in "' + source + '"' : - 'Available branches in "' + source + '" are ' + branches.join(', '); + 'Available branches in "' + source + '" are: ' + branches.join(', '); throw createError('Branch "' + target + '" does not exist', 'ENORESTARGET', errorDetails); } @@ -175,7 +175,6 @@ GitRemoteResolver._fetchHeads = function (source) { return Q.resolve(this._heads[source]); } - // Request heads of the source of only the specified branch return this._fetchRefs(source) .then(function (refs) { this._heads = this._heads || {};