Merge ~adrien/git-ubuntu:worktree-compatibility into git-ubuntu:main
Proposed by
Adrien Nader
Status: | Needs review |
---|---|
Proposed branch: | ~adrien/git-ubuntu:worktree-compatibility |
Merge into: | git-ubuntu:main |
Diff against target: |
97 lines (+23/-54) 1 file modified
gitubuntu/git_repository.py (+23/-54) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robie Basak | Needs Fixing | ||
Server Team CI bot | continuous-integration | Needs Fixing | |
Review via email:
|
Commit message
Make "prepare-upload args" usable in git worktrees
First, this fixes a codepath that was attempting to create a new repository and only worked in
non-worktrees by chance.
Second, this checks for the absence of ident, text and eol attributes in a generic way that also
works in worktrees. It cannot add the relevant lines in the attributes configuration for
worktrees but at least the code can spot if they are already present.
To post a comment you must log in.
The trigger for these changes was me getting upload rights but prepare-upload failing in my worktree-based setup.