Fixing "git dubious ownership in repository" - #308
Open
GuillaumeHullin wants to merge 1 commit into
Open
Conversation
GuillaumeHullin
force-pushed
the
master
branch
from
August 21, 2026 01:30
e4d9900 to
c8c7d3e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The main purpose of the PR is to fix the "git dubious ownership in repository" error mentioned in #307 which would cause re-compiling of XO each time
xo-install.sh --updatewas run.The cause of the issue is the use of runcmd
"chown -R $XOUSER:$XOUSER $INSTALLDIR/xo-builds/xen-orchestra-$TIME"... but I'm guessing that there was a very good reason why it was done. So I usedrunuserbecausesudomight not be available. The command is part of the util-linux package... which should be available on most distros.On other point of the PR is to use the
-Cswitch ofgitas documented in Git doc. This is to avoid unnecessary directory changes in the script.Tested with Debian 12.