@@ -308,10 +308,7 @@ final: prev: {
308 assert isNull sha256;
308 assert isNull sha256;
309 builtins.fetchGit
309 builtins.fetchGit
310 ({ inherit url rev; } //
310 ({ inherit url rev; } //
311− (if ref != null
311+ final.buildPackages.lib.optionalAttrs (ref != null) { inherit ref; }
312− then { inherit ref; }
313− # Don't fail if rev not in default branch:
314− else { allRefs = true; })
317 # Non-private repos must have sha256 set.
314 # Non-private repos must have sha256 set.
@@ -405,10 +402,7 @@ final: prev: {
406 builtins.fetchGit
403 builtins.fetchGit
407 ({ inherit url rev; } //
404 ({ inherit url rev; } //
408− (if ref != null
405+ final.buildPackages.lib.optionalAttrs (ref != null) { inherit ref; }
409− then { inherit ref; }
410− # don't fail if rev not in default branch:
411− else { allRefs = true; })
414 final.evalPackages.fetchgit { inherit url rev sha256; };
408 final.evalPackages.fetchgit { inherit url rev sha256; };