{"thread":{"id":"62733","subject":"Help with Git Subtree Push","startedAt":"2025-01-03T17:28:34Z","lastAt":"2025-01-04T04:50:23Z","messageCount":3,"participants":["Ankit agarwal","rsbecker@nexbridge.com"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"509870","messageId":"CADQbHxG_dop-Lti7N9Uh02YeRuFt9apXTXWRVQb47kHOSCmKgw@mail.gmail.com","threadId":"62733","inReplyTo":null,"subject":"Help with Git Subtree Push","fromName":"Ankit agarwal","fromEmail":"agarwal.ankit51@gmail.com","sentAt":"2025-01-03T17:27:55Z","receivedAt":"2025-01-03T17:28:34Z","isPatch":false,"sender":{"key":"agarwal.ankit51@gmail.com","avatar":null},"body":"Hi All,\n\nWe are currently facing an issue with the use of git subtree in our\nproject. Below is the structure of our main repository:\n\n> *Main Repository *\n> -src\n>   ├── java\n>   ├── test\n> -commons (git subtree linked to external repository: git@github.com:\n> MSILDigital/MSIL-EDS-Transformation.git)\n> -README.MD\n\n\nWhen attempting to perform a *git subtree push* from the main repository\nusing the following command:\n\n> git subtree push --prefix=commons git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch\n\n\nIt fails to create the *feature-branch* in the external repository:\ngit@github.com:MSILDigital/MSIL-EDS-Transformation.git.\n\nTo debug, we executed the command with --debug enabled:\n\ngit subtree push --prefix=commons\ngit@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch --debug\n\n\nHere are the relevant logs:\n\ncommand: {push}\n> quiet: {}\n> dir: {commons}\n> opts: {git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch}\n\ngit push using:  git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch\n> Splitting commons...\n> Using cachedir:\n> /Users/anagarwa/Desktop/Code/msil/arena/.git/subtree-cache/97237\n> Looking for prior splits...\n>   Main is: '78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b'\n>     Prior: 78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b ->\n> 067b015de01bd0aa8d1694b1c9c7b3b9e836e06f\n>   Main is: ''\n>     Squash: 7aca20022503ddc3374be82ee39089da07094a5b from\n> 6ce1ce18cb63e5992ff4a29e9e17e92a1af1afa2\n>   Main is: 'c5352df744e1eebca0eb03ae62ca8c52cd501fe0'\n>     Prior: c5352df744e1eebca0eb03ae62ca8c52cd501fe0 ->\n> f152501eeaacbcc982bf5cce28c0f3d7b843d780\n> progress: 1/     199 (0) [0]\n> Processing commit: 1b0c28da208f38245ba61dcfe1fbb7d0c0f0bb78\n>   parents: c3f464ce8a03eb1034782b649bd1786589d2a95c\n>     incorrect order: c3f464ce8a03eb1034782b649bd1786589d2a95c\n> progress: 1/     199 (1) [1]\n\n\n\nThe complete debug output is attached for your reference.\nInterestingly, this command works as expected for some team members.\n\nCould you please guide us on what might be causing this behavior and how we\ncan resolve it to successfully execute the git subtree push?\n\nLooking forward to your insights.\n\n-- \nThanks and regards,\nAnkit Agarwal\n+91-8588910651\n"},{"id":"509875","messageId":"059601db5e0c$5efbcb60$1cf36220$@nexbridge.com","threadId":"62733","inReplyTo":"CADQbHxG_dop-Lti7N9Uh02YeRuFt9apXTXWRVQb47kHOSCmKgw@mail.gmail.com","subject":"RE: Help with Git Subtree Push","fromName":"","fromEmail":"rsbecker@nexbridge.com","sentAt":"2025-01-03T18:21:50Z","receivedAt":"2025-01-03T18:22:03Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"On January 3, 2025 12:28 PM, Ankit Agarwal wrote:\n>We are currently facing an issue with the use of git subtree in our project. Below is the structure of our main repository:\n>Main Repository  \n>-src  \n> ├── java\n>  ├── test  \n>-commons (git subtree linked to external repository: mailto:git@github.com:MSILDigital/MSIL-EDS-Transformation.git)  \n>-README.MD  \n>\n>When attempting to perform a git subtree push from the main repository using the following command:\n>git subtree push --prefix=commons mailto:git@github.com:MSILDigital/MSIL-EDS-Transformation.git feature-branch  \n>\n>It fails to create the feature-branch in the external repository: mailto:git@github.com:MSILDigital/MSIL-EDS-Transformation.git.\n>To debug, we executed the command with --debug enabled:\n>git subtree push --prefix=commons mailto:git@github.com:MSILDigital/MSIL-EDS-Transformation.git feature-branch --debug  \n>\n>Here are the relevant logs:\n>command: {push}\n>quiet: {}\n>dir: {commons}\n>opts: mailto:{git@github.com:MSILDigital/MSIL-EDS-Transformation.git feature-branch}\n>git push using:  mailto:git@github.com:MSILDigital/MSIL-EDS-Transformation.git feature-branch\n>Splitting commons...\n>Using cachedir: /Users/anagarwa/Desktop/Code/msil/arena/.git/subtree-cache/97237\n>Looking for prior splits...\n>  Main is: '78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b'\n>    Prior: 78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b -> 067b015de01bd0aa8d1694b1c9c7b3b9e836e06f\n>  Main is: ''\n>    Squash: 7aca20022503ddc3374be82ee39089da07094a5b from 6ce1ce18cb63e5992ff4a29e9e17e92a1af1afa2\n>  Main is: 'c5352df744e1eebca0eb03ae62ca8c52cd501fe0'\n>    Prior: c5352df744e1eebca0eb03ae62ca8c52cd501fe0 -> f152501eeaacbcc982bf5cce28c0f3d7b843d780\n>progress: 1/     199 (0) [0]\n>Processing commit: 1b0c28da208f38245ba61dcfe1fbb7d0c0f0bb78\n>  parents: c3f464ce8a03eb1034782b649bd1786589d2a95c\n>    incorrect order: c3f464ce8a03eb1034782b649bd1786589d2a95c\n>progress: 1/     199 (1) [1]\n>\n>The complete debug output is attached for your reference.\n>Interestingly, this command works as expected for some team members.\n>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?\n>Looking forward to your insights.\n\nAFAIK, git subtree is not part of standard git installations or in the base git code.\nIt is a contribution. I would suggest contacting the contributor, apenwarr@gmail.com\nFor assistance. At least in the CC.\n\nYou might want to consider moving to submodules in a recent git for what you are\nattempting.\n\n--Randall\n\n"},{"id":"509907","messageId":"CADQbHxHrF04wqdvsoA47FB29idV-amk=sf8mLpQmmMHCHnuUcQ@mail.gmail.com","threadId":"62733","inReplyTo":"059601db5e0c$5efbcb60$1cf36220$@nexbridge.com","subject":"Re: Help with Git Subtree Push","fromName":"Ankit agarwal","fromEmail":"agarwal.ankit51@gmail.com","sentAt":"2025-01-04T04:49:45Z","receivedAt":"2025-01-04T04:50:23Z","isPatch":false,"sender":{"key":"agarwal.ankit51@gmail.com","avatar":null},"body":"Hi All,\nThanks  for the recommendations.\nAdding @apenwarr here as well.\nTo reiterate the details again.\n\nWe are currently facing an issue with the use of git subtree in our\nproject. Below is the structure of our main repository:\n\n> *Main Repository *\n> -src\n>   ├── java\n>   ├── test\n> -commons (git subtree linked to external repository: git@github.com:\n> MSILDigital/MSIL-EDS-Transformation.git)\n> -README.MD\n\n\nWhen attempting to perform a *git subtree push* from the main repository\nusing the following command:\n\n> git subtree push --prefix=commons git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch\n\n\nIt fails to create the *feature-branch* in the external repository:\ngit@github.com:MSILDigital/MSIL-EDS-Transformation.git.\n\nTo debug, we executed the command with --debug enabled:\n\ngit subtree push --prefix=commons\ngit@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch --debug\n\n\nHere are the relevant logs:\n\ncommand: {push}\n> quiet: {}\n> dir: {commons}\n> opts: {git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch}\n\ngit push using:  git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch\n> Splitting commons...\n> Using cachedir:\n> /Users/anagarwa/Desktop/Code/msil/arena/.git/subtree-cache/97237\n> Looking for prior splits...\n>   Main is: '78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b'\n>     Prior: 78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b ->\n> 067b015de01bd0aa8d1694b1c9c7b3b9e836e06f\n>   Main is: ''\n>     Squash: 7aca20022503ddc3374be82ee39089da07094a5b from\n> 6ce1ce18cb63e5992ff4a29e9e17e92a1af1afa2\n>   Main is: 'c5352df744e1eebca0eb03ae62ca8c52cd501fe0'\n>     Prior: c5352df744e1eebca0eb03ae62ca8c52cd501fe0 ->\n> f152501eeaacbcc982bf5cce28c0f3d7b843d780\n> progress: 1/     199 (0) [0]\n> Processing commit: 1b0c28da208f38245ba61dcfe1fbb7d0c0f0bb78\n>   parents: c3f464ce8a03eb1034782b649bd1786589d2a95c\n>     incorrect order: c3f464ce8a03eb1034782b649bd1786589d2a95c\n> progress: 1/     199 (1) [1]\n\n\n\nThe complete debug output is attached for your reference.\nInterestingly, this command works as expected for some team members.\n\nCould you please guide us on what might be causing this behavior and how we\ncan resolve it to successfully execute the git subtree push?\n\nLooking forward to your insights.\n\n--\nThanks and regards,\nAnkit Agarwal\n+91-8588910651\n\n\n\nOn Fri, Jan 3, 2025 at 11:51 PM <rsbecker@nexbridge.com> wrote:\n\n> On January 3, 2025 12:28 PM, Ankit Agarwal wrote:\n> >We are currently facing an issue with the use of git subtree in our\n> project. Below is the structure of our main repository:\n> >Main Repository\n> >-src\n> > ├── java\n> >  ├── test\n> >-commons (git subtree linked to external repository: mailto:\n> git@github.com:MSILDigital/MSIL-EDS-Transformation.git)\n> >-README.MD\n> >\n> >When attempting to perform a git subtree push from the main repository\n> using the following command:\n> >git subtree push --prefix=commons mailto:git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch\n> >\n> >It fails to create the feature-branch in the external repository: mailto:\n> git@github.com:MSILDigital/MSIL-EDS-Transformation.git.\n> >To debug, we executed the command with --debug enabled:\n> >git subtree push --prefix=commons mailto:git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch --debug\n> >\n> >Here are the relevant logs:\n> >command: {push}\n> >quiet: {}\n> >dir: {commons}\n> >opts: mailto:{git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch}\n> >git push using:  mailto:git@github.com:MSILDigital/MSIL-EDS-Transformation.git\n> feature-branch\n> >Splitting commons...\n> >Using cachedir:\n> /Users/anagarwa/Desktop/Code/msil/arena/.git/subtree-cache/97237\n> >Looking for prior splits...\n> >  Main is: '78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b'\n> >    Prior: 78dfdb9f6dcc729a5f99a03b8ba061b28f4db97b ->\n> 067b015de01bd0aa8d1694b1c9c7b3b9e836e06f\n> >  Main is: ''\n> >    Squash: 7aca20022503ddc3374be82ee39089da07094a5b from\n> 6ce1ce18cb63e5992ff4a29e9e17e92a1af1afa2\n> >  Main is: 'c5352df744e1eebca0eb03ae62ca8c52cd501fe0'\n> >    Prior: c5352df744e1eebca0eb03ae62ca8c52cd501fe0 ->\n> f152501eeaacbcc982bf5cce28c0f3d7b843d780\n> >progress: 1/     199 (0) [0]\n> >Processing commit: 1b0c28da208f38245ba61dcfe1fbb7d0c0f0bb78\n> >  parents: c3f464ce8a03eb1034782b649bd1786589d2a95c\n> >    incorrect order: c3f464ce8a03eb1034782b649bd1786589d2a95c\n> >progress: 1/     199 (1) [1]\n> >\n> >The complete debug output is attached for your reference.\n> >Interestingly, this command works as expected for some team members.\n> >Could you please guide us on what might be causing this behavior and how\n> we can resolve it to successfully execute the git subtree push?\n> >Looking forward to your insights.\n>\n> AFAIK, git subtree is not part of standard git installations or in the\n> base git code.\n> It is a contribution. I would suggest contacting the contributor,\n> apenwarr@gmail.com\n> For assistance. At least in the CC.\n>\n> You might want to consider moving to submodules in a recent git for what\n> you are\n> attempting.\n>\n> --Randall\n>\n>\n"}]}