summaryrefslogtreecommitdiff
path: root/git-gui/lib/commit.tcl
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2025-07-21 11:12:18 -0400
committerMark Levedahl <mlevedahl@gmail.com>2025-07-21 18:22:33 -0400
commit3ce650f4c93f9f3aacdb6a1d8cef21bb2009bfa3 (patch)
tree493078163da4811bf854188dafa12e7e9d3931dc /git-gui/lib/commit.tcl
parent6ff8d68ec1adf170aa57630989fde092d18e02de (diff)
git-gui: default to full copy for linked worktrees
git-gui's default clone method is git-clone's default, and this uses hardlinks rather than copying the objects directory for local repositories. However, this method explicitly fails if a symlink (or .gitfile) exists in the path to the objects directory. Thus, the default clone option fails for worktrees created by git-new-workdir or git-worktree. git-gui's original do_clone trapped this error for a symlinked git-new-workdir tree, directly falling back to a full clone, while the updated git-gui using git-clone does not. (The old do_clone could not handle gitfile linked worktrees, however). Let's apply the more friendly fallback to a full clone in both these cases where git-clone behavior throws an error on the default method. Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions