Skip to content

Commit

Permalink
Merge pull request #487 from nickbroon/gbp_export
Browse files Browse the repository at this point in the history
gbp: use --git-export
  • Loading branch information
adrianschroeter authored Jul 31, 2024
2 parents bf9009a + 396c4f4 commit fda75dc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions TarSCM/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,18 +256,14 @@ def create_archive(self, scm_object, **kwargs):
cwd = os.getcwd()
os.chdir(workdir)

if not args.revision:
revision = 'origin/master'
else:
revision = 'origin/' + args.revision

command = ['gbp', 'buildpackage', '--git-notify=off',
'--git-force-create', '--git-cleaner="true"']

# we are not on a proper local branch due to using git-reset but we
# anyway use the --git-export option
command.extend(['--git-ignore-branch',
"--git-export=%s" % revision])
"--git-export-dir=%s" % workdir,
'--git-export=WC'])

# gbp can load submodules without having to run the git command, and
# will ignore submodules even if loaded manually unless this option is
Expand Down

0 comments on commit fda75dc

Please sign in to comment.