Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-01-20 02:04:46 +0300
committerJunio C Hamano <gitster@pobox.com>2024-01-20 02:04:46 +0300
commited87d37eaae64ea1eaf585ddba311b3d763e4df8 (patch)
tree88cb654547768bf15ea69da8f3e297a2cb82b969
parent1b095626937a858e3a68e9c7d1de11b71117bb42 (diff)
parent02b5c1a94698a14b6df71a9e8d38b75169787fa3 (diff)
Merge branch 'ps/p4-use-ref-api'
"git p4" update to prepare for reftable * ps/p4-use-ref-api: git-p4: stop reaching into the refdb
-rwxr-xr-xgit-p4.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-p4.py b/git-p4.py
index 0eb3bb4c47..3ea1c405e5 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -4251,7 +4251,8 @@ class P4Sync(Command, P4UserMap):
if self.tempBranches != []:
for branch in self.tempBranches:
read_pipe(["git", "update-ref", "-d", branch])
- os.rmdir(os.path.join(os.environ.get("GIT_DIR", ".git"), self.tempBranchLocation))
+ if len(read_pipe(["git", "for-each-ref", self.tempBranchLocation])) > 0:
+ die("There are unexpected temporary branches")
# Create a symbolic ref p4/HEAD pointing to p4/<branch> to allow
# a convenient shortcut refname "p4".