summaryrefslogtreecommitdiff
path: root/t/t9134-git-svn-ignore-paths.sh
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-11-30 15:24:33 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-12-01 11:00:12 -0800
commit1fdc2abf1b09e2c6971b189a8a36430a34c280b6 (patch)
tree2474e6cd99df16f26d8d61b225b6475aebc1c921 /t/t9134-git-svn-ignore-paths.sh
parent*.sh: respect $GIT_INDEX_FILE (diff)
downloadtgif-1fdc2abf1b09e2c6971b189a8a36430a34c280b6.tar.xz
reflog: avoid constructing .lock path with git_path
Among pathnames in $GIT_DIR, e.g. "index" or "packed-refs", we want to automatically and silently map some of them to the $GIT_DIR of the repository we are borrowing from via $GIT_COMMON_DIR mechanism. When we formulate the pathname for its lockfile, we want it to be in the same location as its final destination. "index" is not shared and needs to remain in the borrowing repository, while "packed-refs" is shared and needs to go to the borrowed repository. git_path() could be taught about the ".lock" suffix and map "index.lock" and "packed-refs.lock" the same way their basenames are mapped, but instead the caller can help by asking where the basename (e.g. "index") is mapped to git_path() and then appending ".lock" after the mapping is done. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9134-git-svn-ignore-paths.sh')
0 files changed, 0 insertions, 0 deletions