Comment 1 for bug 1713549

Revision history for this message
Nish Aravamudan (nacc) wrote : Re: [Bug 1713549] [NEW] 'build' should work (or support working) in a git work-tree

We don't currently support building outside of dpkg-buildpackage itself. If
dpkg-buildpackage complains about untracked modifications to the source,
that is a fatal error, switching the working tree won't help afaict?

If you can provide a few more details that will help with reproducing the
feature request (which will probably be post-1.0). What does `git status`
say? Can you provide the log file from that message and the complete
message?

On Aug 28, 2017 11:31, "Scott Moser" <email address hidden> wrote:

> Public bug reported:
>
> git build (or git build-source) may end up complaining that you have
> locally modified files such as:
>
> dpkg-source: error: aborting due to unexpected upstream changes, see
> /tmp/open-iscsi_2.0.874-2ubuntu3
>
>
> i'd like to build what is committed without worrying about a dirty state.
> One way to do this would be worktree.
>
> basically just:
> dir=$(mktemp -d)
> git worktree add --force $dir/worktree .
> ( cd "$dir/worktree" && debuild )
> ...
> git worktree prune
>
> ** Affects: usd-importer
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Ubuntu
> Server Dev import team, which is subscribed to usd-importer.
> https://bugs.launchpad.net/bugs/1713549
>
> Title:
> 'build' should work (or support working) in a git work-tree
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/usd-importer/+bug/1713549/+subscriptions
>