t9801: check git-p4's branch detection with client spec enabled
commit591707a736bd5cdded81a86e50e5ca46604d8a38
authorVitor Antunes <vitor.hda@gmail.com>
Tue, 21 Apr 2015 22:49:29 +0000 (21 23:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Apr 2015 17:11:18 +0000 (22 10:11 -0700)
treeb360c7e12f079dded3f30b471a94c7211d47cdce
parent5c9c3dfaff886d9882252f03b7f5a11c435f5688
t9801: check git-p4's branch detection with client spec enabled

Add failing scenario when branch detection (--detect-branches) is
enabled together with use client spec (--use-client-spec). In this
specific scenario git-p4 will break when the Perforce client view
removes part of the depot path, as in the following example:

  //depot/branch1/base/... //client/branch1/...

The test case also includes an extra sub-file mapping to enforce
robustness check of git-p4's client view support:

  //depot/branch1/base/dir/sub_file1 //client/branch1/sub_file1

Signed-off-by: Vitor Antunes <vitor.hda@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9801-git-p4-branch.sh