This commit is contained in:
Peter Cottle 2013-10-25 18:41:06 -07:00
parent 005e6047cc
commit bc20fc163b
3 changed files with 15 additions and 3 deletions

View file

@ -853,7 +853,7 @@ GitEngine.prototype.getTargetGraphDifference = function(
var sourceTree = source.exportTree();
var sourceStartCommitJSON = sourceTree.commits[sourceStartCommit.get('id')];
if (target.refs[sourceStartCommitJSON.id]) {
if (targetSet[sourceStartCommitJSON.id]) {
// either we throw since theres no work to be done, or we return an empty array
if (options.dontThrowOnNoFetch) {
return [];