diff options
Diffstat (limited to 'git-pbuilder')
-rwxr-xr-x | git-pbuilder | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/git-pbuilder b/git-pbuilder index b8adcf5f..b18b7a8c 100755 --- a/git-pbuilder +++ b/git-pbuilder @@ -98,10 +98,17 @@ update|create|login) ;; esac +if [ ! -f debian/source/format ] || grep -qs "^1.0" debian/source/format; then + echo "Source format 1.0 detected, adding excludes" + DEBBUILDOPTS="-i'(?:^|/)\\.git(attributes)?(?:\$|/.*\$)' -I.git $*" +else + DEBBUILDOPTS="$*" +fi + # Now we can finally run pdebuild. The quoting here is tricky, but this # seems to pass everything through properly. pdebuild --buildresult .. --pbuilder cowbuilder \ - --debbuildopts "$*" \ + --debbuildopts "$DEBBUILDOPTS" \ -- --basepath "$BASE" $OPTIONS if [ -n "`ls ../*_source.changes`" ] ; then rm ../*_source.changes |