Skip to content

fix git-p4 client root symlink problems

Pete Wyckoff git 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3git p4 test: make sure P4CONFIG relative path workst/t9808-git-p4-chdir.sh+14 -00 replies
2/3git p4 test: should honor symlink in p4 client roott/t9808-git-p4-chdir.sh+27 -00 replies
3/3git p4: avoid expanding client paths in chdirgit-p4.py t/t9808-git-p4-chdir.sh+23 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] fix git-p4 client root symlink problems

Update from v1:

* add SYMLINKS prerequisite to the new symlink test

Thanks Hannes.

Miklós pointed out in

    http://thread.gmane.org/gmane.comp.version-control.git/214915

that when the p4 client root included a symlink, bad things happen. It is fixable, but inconvenient, to use an absolute path in one's p4 client. It's not too hard to be smarter about this in git-p4.

Thanks to Miklós for the patch, and to John for the style suggestions. I wrote a couple of tests to make sure this part doesn't break again.

This is maybe a bug introduced by bf1d68f (git-p4: use absolute directory for PWD env var, 2011-12-09), but that's so long ago that I don't think this is a candidate for maint.

		-- Pete

Miklós Fazekas (1):
git p4: avoid expanding client paths in chdir

Pete Wyckoff (2):
git p4 test: make sure P4CONFIG relative path works git p4 test: should honor symlink in p4 client root

 git-p4.py               | 29 ++++++++++++++++++++++-------
 t/t9808-git-p4-chdir.sh | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+), 7 deletions(-)
Signature · 1 line
1.8.2.rc2.65.g92f3e2d