'build' should work (or support working) in a git worktree
Bug #1713549 reported by
Scott Moser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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-
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
summary: |
- 'build' should work (or support working) in a git work-tree + 'build' should work (or support working) in a git worktree |
Changed in usd-importer: | |
milestone: | none → future |
To post a comment you must log in.
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: iscsi_2. 0.874-2ubuntu3 /bugs.launchpad .net/bugs/ 1713549 /bugs.launchpad .net/usd- importer/ +bug/1713549/ +subscriptions
>
> 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-
>
>
> 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:/
>
> Title:
> 'build' should work (or support working) in a git work-tree
>
> To manage notifications about this bug go to:
> https:/
>