1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
|
# File 'lib/autobuild/import/git.rb', line 1297
def validate_shallow(package)
return false unless shallow?
if commit
Autoproj.warn "#{package.name}: "\
"Cannot pin a commit while doing a shallow clone"
return false
end
if tag && !single_branch?
Autoproj.warn "#{package.name}: "\
"Cannot pin a tag while doing a shallow clone"
return false
end
if @remote_branch
Autoproj.warn "#{package.name}: "\
"Cannot use remote_branch while doing a shallow clone"
return false
end
true
end
|