You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue where the hashes are different between this lib and a standard subtree split. This is causing issues when trying to push the changes to a child repos, while using git subtree push works fine.
$ git version
git version 2.34.1
$ splitsh-lite --version
splitsh-lite version v1.0.1
More details below, but it seems like splitsh isn't gathering all the expected commits which results in the hash being different in the end. I'm not using --squash so I don't think it's related to #15. I actually also tried with that Docker image in that issue and same problem.
$ git log
commit 868052990df6cddf09cc35c4bcbf63c4ade5c66c (HEAD -> master)
Merge: 1a613f0 88ce778
Author: George Dietrich <[email protected]>
Date: Sun Dec 12 10:24:46 2021 -0500
Add 'libs/two/' from commit '88ce77827ecd614fcca6e2bbb6983999daab2367'
git-subtree-dir: libs/two
git-subtree-mainline: 1a613f0abf4fd5ce57a6d7ec2c9e70bef0c61127
git-subtree-split: 88ce77827ecd614fcca6e2bbb6983999daab2367
commit 1a613f0abf4fd5ce57a6d7ec2c9e70bef0c61127
Author: George Dietrich <[email protected]>
Date: Sun Dec 12 10:24:45 2021 -0500
Initialize mono repo
commit 88ce77827ecd614fcca6e2bbb6983999daab2367
Author: George Dietrich <[email protected]>
Date: Sat Dec 11 23:19:21 2021 -0500
Bump component versions
commit 686027d84b670d9fa7861fe9b16c24a79428a2d4
Author: George Dietrich <[email protected]>
Date: Sat Dec 11 22:39:52 2021 -0500
Add .summary method
commit 6e5fa9f03d5350ebee79b6899de1072a3dd126e9
Author: George Dietrich <[email protected]>
Date: Sat Dec 11 22:39:10 2021 -0500
Initial commit
Git log, branch created via splitsh:
$ splitsh-lite --prefix=libs/two/ --scratch --target=refs/heads/splitsh
1 commits created, 5 commits traversed, in 6ms
c8f28643a1f9cb160a075e1672addd1a30d63d6b
$ git co splitsh
$ git log
commit c8f28643a1f9cb160a075e1672addd1a30d63d6b (HEAD -> splitsh)
Author: George Dietrich <[email protected]>
Date: Sun Dec 12 10:24:46 2021 -0500
Add 'libs/two/' from commit '88ce77827ecd614fcca6e2bbb6983999daab2367'
git-subtree-dir: libs/two
git-subtree-mainline: 1a613f0abf4fd5ce57a6d7ec2c9e70bef0c61127
git-subtree-split: 88ce77827ecd614fcca6e2bbb6983999daab2367
Git log, branch created via subtree split:
$ git subtree split -P libs/two -b subtree-split
Created branch 'subtree-split'
88ce77827ecd614fcca6e2bbb6983999daab2367
$ git co subtree-split
$ git log
commit 88ce77827ecd614fcca6e2bbb6983999daab2367 (HEAD -> subtree-split)
Author: George Dietrich <[email protected]>
Date: Sat Dec 11 23:19:21 2021 -0500
Bump component versions
commit 686027d84b670d9fa7861fe9b16c24a79428a2d4
Author: George Dietrich <[email protected]>
Date: Sat Dec 11 22:39:52 2021 -0500
Add .summary method
commit 6e5fa9f03d5350ebee79b6899de1072a3dd126e9
Author: George Dietrich <[email protected]>
Date: Sat Dec 11 22:39:10 2021 -0500
Initial commit
The text was updated successfully, but these errors were encountered:
Looking at using this (again), and still seeing differences in the hashes. The discussion in #26 indicates the differences are nothing to worry about, eventually.
At point (1) the branches have the same "root", up to that point they are identical. Point (2) shows the first commits being different in both branches - the "same" PR being merged. In point (3) the PR branch (red) shows a difference, the merge of neos/flow-development-collection#1919 is missing in the splitsh-lite split…
I ran into an issue where the hashes are different between this lib and a standard subtree split. This is causing issues when trying to push the changes to a child repos, while using
git subtree push
works fine.This issue can be reproduced via this script using https://github.com/crystal-manyrepos/two (but also reproduces when using this repo for example):
More details below, but it seems like
splitsh
isn't gathering all the expected commits which results in the hash being different in the end. I'm not using--squash
so I don't think it's related to #15. I actually also tried with that Docker image in that issue and same problem.Output:
Debug output:
Git log (master):
Git log, branch created via
splitsh
:Git log, branch created via
subtree split
:The text was updated successfully, but these errors were encountered: