git-p4

git-p4 is eating my image files

不羁的心 提交于 2019-12-10 17:29:39
问题 So, I can import from p4 using git-p4 without any problem. Everything seems to work, but my PNG files (and perhaps others) are getting corrupted. I've read about gitattributes and the line ending issues, but nothing I do seems to change the end result. Broken images. My attributes file is: *.png binary Any ideas? As I understand it, git is supposed to be smart enough to figure out that a png is a binary file without this help. Is this something particular to do with how p4-git pulls the files

How to git-p4 clone from the middle of a perforce repo?

邮差的信 提交于 2019-12-10 16:37:18
问题 I'd like to clone the second half of my repo. It works correctly using the command: git-p4 clone --detect-branches //depot@all So I want to run something like below, but it does not import the files the same way and eventually fails: git-p4 clone --detect-branches //depot@2000,3000 How can I get the second method to work correctly? Update : The output I get right now is that p4 becomes stuck in an infinite loop: current change 32688 trying: earliest latest

git p4 clone has no files

你。 提交于 2019-12-10 14:13:13
问题 I'm migrating from Perforce to git, and in the process I'm trying to get the file structure right. The current perforce structure is something like this: //depot /android /main /other_branches /core_library /main /other_branches and I'm shooting for something like this in git: /android /core_library I set up my client spec View as follows (I'll worry about the branches later): //depot/android/main/... //p4-git/android/... //depot/android/core_library/main/... //p4-git/core_library/... Wen I

Unable to execute - Git P4 clone broken

瘦欲@ 提交于 2019-12-09 11:57:34
问题 After git installation - I tried to clone an existing p4 branch, but it failed with the following information: c:\P4_GIT\DT>git p4 clone //depot/CTAT/Windows/OneP/ fatal: 'p4' appears to be a git command, but we were not able to execute it. Maybe git-p4 is broken? 回答1: I've had more success (on Linux admittedly) downloading one of the git-p4 branches from github and calling it directly ( git-p4 ) rather than through git p4 . Maybe that would help you? 回答2: I saw this on Git for Windows 2.16.1

git-p4 submit fails with “Not a valid object name HEAD~261”

依然范特西╮ 提交于 2019-12-06 08:57:07
问题 I've got a git repository that I'd like to mirror to a Perforce repository. I've downloaded the git-p4 script (the more recent version that doesn't give deprecation warnings), and have been working with that. I've figured out how to pull changes from Perforce, but I'm getting an error when I try to sync changes from the git repo back. Here's what I've done so far: git clone git@github.com:asdf/qwerty.git git-p4 sync //depot/path/to/querty git merge remotes/p4/master (there was a single README

How to get --detect-branches to work with git-p4?

北战南征 提交于 2019-12-05 01:30:28
My p4 repository has a structure similar to: //depot/project/branch1 //depot/project/branch2 //depot/project/branch3 ... etc However, when I use git-p4 to clone "project", all 3 branches are not considered as branches and all get cloned into the single master branch. This is how I'm invoking git-p4 : git-p4 clone --detect-branches //depot/project I was expecting git-p4 to create a git database for " project " with three branches, and the root of the project would be mapped to the portion of the path after the branch name (for example: if //depot/project/branch1 has a subdirectory called " lib

Using git-p4 to setup a git clone of a perforce client

心不动则不痛 提交于 2019-12-04 21:25:24
I have a perforce client which maps several perforce paths into my local client. These perforce paths are for libraries and the main code line. How do I use git-p4 to setup a clone of the entire client in a separate directory? From what I see git-p4 can only clone specific depot paths. I would like to clone an entire client: suppose my perforce client is test_client. I would like to do: cd git_area cp ../perforce/test_client/.perforce . git-p4 clone or something similar which will pull in all the directories into this separate git directory. I believe that most git-p4 operations work on a

git-p4 submit fails with “Not a valid object name HEAD~261”

£可爱£侵袭症+ 提交于 2019-12-04 13:35:14
I've got a git repository that I'd like to mirror to a Perforce repository. I've downloaded the git-p4 script (the more recent version that doesn't give deprecation warnings), and have been working with that. I've figured out how to pull changes from Perforce, but I'm getting an error when I try to sync changes from the git repo back. Here's what I've done so far: git clone git@github.com:asdf/qwerty.git git-p4 sync //depot/path/to/querty git merge remotes/p4/master (there was a single README file...) So, I've copied the origin to a clean, new director, got a lovely looking merged tree of

git-p4 migrate branches in different subdirectories

强颜欢笑 提交于 2019-12-04 13:08:00
问题 I want to migrate source code tree from perforce to git. The source code contains several dev branches scattered across perforce depot, not necessarily in the same directory. for example the structure is something like this - //depot/dev/project/master //depot/dev/project/branch1 //depot/dev/project/branch2 //depot/dev/sub-project/branch3 //depot/dev/sub-project/branch4 //depot/patch-project/branch5 //depot/patch-project/special/developern/branch6 I went though git-p4 documentation https:/

git-p4: fatal: git was built without support for git-p4 (NO_PYTHON=1)

旧巷老猫 提交于 2019-12-03 13:33:12
I am trying to use git p4 on my Linux computer. But there seems to be a problem with git-p4 for some reason. When I run the git p4 command I get: fatal: git was built without support for git-p4 (NO_PYTHON=1) Any idea why this message is being displayed? Is there anyway I can fix it? I am using an Ubuntu distribution with Kernel version 3.11.0. Thank you in advance. You could download the git-p4.py file and move it to the right directory: wget http://git.kernel.org/cgit/git/git.git/plain/git-p4.py?id=master -O git-p4 && chmod +x git-p4 sudo mv git-p4 /usr/lib/git-core/ You can just download the