Help with Git Subtree Push

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

We are currently facing an issue with the use of git subtree in our project. Below is the structure of our main repository:

Main Repository  
-src  
  ├── java
  ├── test  
-commons (git subtree linked to external repository: git@xxxxxxxxxx:MSILDigital/MSIL-EDS-Transformation.git)  
-README.MD  


When attempting to perform a git subtree push from the main repository using the following command:

git subtree push --prefix=commons git@xxxxxxxxxx:MSILDigital/MSIL-EDS-Transformation.git feature-branch  


It fails to create the feature-branch in the external repository: git@xxxxxxxxxx:MSILDigital/MSIL-EDS-Transformation.git.

To debug, we executed the command with --debug enabled:

git subtree push --prefix=commons git@xxxxxxxxxx:MSILDigital/MSIL-EDS-Transformation.git feature-branch --debug  

Here are the relevant logs:

command: {push}
quiet: {}
dir: {commons}
opts: {git@xxxxxxxxxx:MSILDigital/MSIL-EDS-Transformation.git feature-branch}
git push using:  git@xxxxxxxxxx:MSILDigital/MSIL-EDS-Transformation.git feature-branch
Splitting commons...
Using cachedir: /Users/anagarwa/Desktop/Code/msil/arena/.git/subtree-cache/97237
Looking for prior splits...
  Main is: '78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b'
    Prior: 78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b -> 067b015de01bd0aa8d1694b1c9c7b3b9e836e06f
  Main is: ''
    Squash: 7aca20022503ddc3374be82ee39089da07094a5b from 6ce1ce18cb63e5992ff4a29e9e17e92a1af1afa2
  Main is: 'c5352df744e1eebca0eb03ae62ca8c52cd501fe0'
    Prior: c5352df744e1eebca0eb03ae62ca8c52cd501fe0 -> f152501eeaacbcc982bf5cce28c0f3d7b843d780
progress: 1/     199 (0) [0]
Processing commit: 1b0c28da208f38245ba61dcfe1fbb7d0c0f0bb78
  parents: c3f464ce8a03eb1034782b649bd1786589d2a95c
    incorrect order: c3f464ce8a03eb1034782b649bd1786589d2a95c
progress: 1/     199 (1) [1]


The complete debug output is attached for your reference.
Interestingly, this command works as expected for some team members.

Could you please guide us on what might be causing this behavior and how we can resolve it to successfully execute the git subtree push?

Looking forward to your insights.


--
Thanks and regards,
Ankit Agarwal
+91-8588910651

Attachment: git-subtree.log
Description: Binary data


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux