Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src



Module Name:    src
Committed By:   martin
Date:           Mon Sep 11 14:43:27 UTC 2023

Modified Files:
        src [netbsd-9]: build.sh

Log Message:
Pull up following revision(s) (requested by khorben in ticket #1730):

        build.sh: revision 1.374

build.sh: add support for git worktree

Git supports multiple working trees attached to the same repository,
with the git-worktree(1) subcommand.

When building from a Git working tree, the repository metadata in .git
from the top source directory is a file (containing the actual location
of the metadata) instead of the usual directory structure. With this
change, build.sh allows .git to be a directory or a regular file
instead, therefore letting the sources build as expected from a Git
working tree.

To test: (without this patch)
   src$ git worktree add ../src-clean-tree
   [...]
   src$ (cd ../src-clean-tree && ./build.sh tools)
   [...]
   ERROR: Cannot determine VCS for '.../src-clean-tree/'


To generate a diff of this commit:
cvs rdiff -u -r1.333.2.3 -r1.333.2.4 src/build.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index