Skip to content

git-p4: fix submit regression with --use-client-spec

Pete Wyckoff git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2git-p4: set useClientSpec variable on initial cloneDocumentation/git-p4.txt contrib/fast-import/git-p4 t/t9809-git-p4-client-view.sh+34 -40 replies
2/2git-p4: fix submit regression with clientSpec and subdir clonecontrib/fast-import/git-p4 t/t9809-git-p4-client-view.sh+185 -430 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] git-p4: fix submit regression with --use-client-spec

This pair of patches fixes a regression that happened with ecb7cf9 (git-p4: rewrite view handling, 2012-01-02). There are two factors that affect where files go in the client when submitting: the cilent spec, and the depot path. When the depot path was not exactly the root of the client, submit fails.

Fix this by always using the true client root. And also notice that somebody has to tell the submit path that it should be looking at the cilent spec. Save useClientSpec in a configuration variable if it was specified as an option on the command line.

Junio: can you put this on maint to go out with the next 1.9.x?

Pete Wyckoff (2):
git-p4: set useClientSpec variable on initial clone
git-p4: fix submit regression with clientSpec and subdir clone

 Documentation/git-p4.txt      |   10 ++-
 contrib/fast-import/git-p4    |   97 ++++++++++++++++---------
 t/t9809-git-p4-client-view.sh |  159 ++++++++++++++++++++++++++++++++++++++---
 3 files changed, 219 insertions(+), 47 deletions(-)
Signature · 1 line
1.7.9.219.g1d56c.dirty