From 196d56d0141ec47e85abd752907faa74e35ce25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Marku=C5=A1i=C4=87?= Date: Mon, 18 Apr 2022 10:18:27 +0200 Subject: [PATCH] Add integration tests --- .../setUpstream/expected/origin/config | 4 +- .../setUpstream/expected/origin/info/exclude | 1 - .../27/58cffdc0d931ff3a3d6c58b75f91ec42981dcf | Bin 0 -> 149 bytes .../6d/51185514ab4f80b42f17013295c261f92a66f0 | Bin 0 -> 148 bytes .../9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 | 3 ++ .../ce/3220d7b3cbc57811e3e6169349c611f62a7c42 | Bin 0 -> 151 bytes .../setUpstream/expected/origin/packed-refs | 2 +- .../expected/repo/.git_keep/FETCH_HEAD | 2 +- .../expected/repo/.git_keep/ORIG_HEAD | 2 +- .../expected/repo/.git_keep/config | 2 - .../setUpstream/expected/repo/.git_keep/index | Bin 353 -> 209 bytes .../expected/repo/.git_keep/info/exclude | 1 - .../expected/repo/.git_keep/logs/HEAD | 12 +++--- .../repo/.git_keep/logs/refs/heads/master | 11 +++--- .../.git_keep/logs/refs/remotes/origin/master | 2 +- .../27/58cffdc0d931ff3a3d6c58b75f91ec42981dcf | Bin 0 -> 149 bytes .../6d/51185514ab4f80b42f17013295c261f92a66f0 | Bin 0 -> 148 bytes .../9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 | 3 ++ .../ce/3220d7b3cbc57811e3e6169349c611f62a7c42 | Bin 0 -> 151 bytes .../expected/repo/.git_keep/refs/heads/master | 2 +- .../repo/.git_keep/refs/remotes/origin/master | 2 +- test/integration/setUpstream/recording.json | 2 +- .../expected/origin/HEAD | 1 + .../expected/origin/config | 8 ++++ .../expected/origin/description | 1 + .../expected/origin/info/exclude | 7 ++++ .../0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 | Bin 0 -> 52 bytes .../18/0cf8328022becee9aaa2577a8f84ea2b9f3827 | Bin 0 -> 21 bytes .../2b/173c861df433fa43ffad13f80c8b312c5c8bce | Bin 0 -> 103 bytes .../2f/6174050380438f14b16658a356e762435ca591 | Bin 0 -> 128 bytes .../30/ef3df33d31f0b98298881be4dbe69c54758ba2 | Bin .../63/05259d1908bee46b3b686702ed55b6f12e9ba2 | 0 .../a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 | 0 .../a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 | Bin 0 -> 21 bytes .../a7/341a59f0ddeef969e69fb6368266d22b0f2416 | Bin 0 -> 77 bytes .../c6/ffcbed8902934d462722ff6ef471813b9a4df5 | Bin .../d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 | Bin 0 -> 21 bytes .../df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b | Bin 0 -> 21 bytes .../expected/origin/packed-refs | 2 + .../expected/repo/.git_keep/COMMIT_EDITMSG | 1 + .../expected/repo/.git_keep/FETCH_HEAD | 1 + .../expected/repo/.git_keep/HEAD | 1 + .../expected/repo/.git_keep/ORIG_HEAD | 1 + .../expected/repo/.git_keep/config | 16 ++++++++ .../expected/repo/.git_keep/description | 1 + .../expected/repo/.git_keep/index | Bin 0 -> 353 bytes .../expected/repo/.git_keep/info/exclude | 7 ++++ .../expected/repo/.git_keep/logs/HEAD | 7 ++++ .../repo/.git_keep/logs/refs/heads/master | 6 +++ .../.git_keep/logs/refs/remotes/origin/master | 1 + .../0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 | Bin 0 -> 52 bytes .../18/0cf8328022becee9aaa2577a8f84ea2b9f3827 | Bin 0 -> 21 bytes .../2b/173c861df433fa43ffad13f80c8b312c5c8bce | Bin 0 -> 103 bytes .../2f/6174050380438f14b16658a356e762435ca591 | Bin 0 -> 128 bytes .../30/ef3df33d31f0b98298881be4dbe69c54758ba2 | Bin .../63/05259d1908bee46b3b686702ed55b6f12e9ba2 | 0 .../a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 | 0 .../a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 | Bin 0 -> 21 bytes .../a7/341a59f0ddeef969e69fb6368266d22b0f2416 | Bin 0 -> 77 bytes .../c6/ffcbed8902934d462722ff6ef471813b9a4df5 | Bin .../d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 | Bin 0 -> 21 bytes .../df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b | Bin 0 -> 21 bytes .../expected/repo/.git_keep/refs/heads/master | 1 + .../repo/.git_keep/refs/remotes/origin/master | 1 + .../expected/repo/myfile1 | 1 + .../expected/repo/myfile2 | 1 + .../expected/repo/myfile3 | 0 .../expected/repo/myfile4 | 0 .../setUpstreamThroughPush/recording.json | 1 + .../setUpstreamThroughPush/setup.sh | 32 ++++++++++++++++ .../setUpstreamThroughPush/test.json | 1 + .../unsetUpstream/expected/origin/HEAD | 1 + .../unsetUpstream/expected/origin/config | 6 +++ .../unsetUpstream/expected/origin/description | 1 + .../expected/origin/info/exclude | 6 +++ .../0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 | Bin 0 -> 52 bytes .../18/0cf8328022becee9aaa2577a8f84ea2b9f3827 | Bin 0 -> 21 bytes .../24/351b001b63ca15b6b83542ffb765567e17df23 | Bin 0 -> 147 bytes .../28/9b2354ac3770d96fc3fcfd2a8026fc78a32cc5 | 3 ++ .../2b/173c861df433fa43ffad13f80c8b312c5c8bce | Bin 0 -> 103 bytes .../2f/6174050380438f14b16658a356e762435ca591 | Bin 0 -> 128 bytes .../70/10e33e20178a1a179853948691a9036d48e562 | Bin 0 -> 149 bytes .../99/4a4733eacc0000721e01a177704e2f26216510 | 2 + .../a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 | Bin 0 -> 21 bytes .../a7/341a59f0ddeef969e69fb6368266d22b0f2416 | Bin 0 -> 77 bytes .../d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 | Bin 0 -> 21 bytes .../df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b | Bin 0 -> 21 bytes .../unsetUpstream/expected/origin/packed-refs | 2 + .../expected/repo/.git_keep/COMMIT_EDITMSG | 1 + .../expected/repo/.git_keep/FETCH_HEAD | 1 + .../expected/repo/.git_keep/HEAD | 1 + .../expected/repo/.git_keep/ORIG_HEAD | 1 + .../expected/repo/.git_keep/config | 11 ++++++ .../expected/repo/.git_keep/description | 1 + .../expected/repo/.git_keep/index | Bin 0 -> 209 bytes .../expected/repo/.git_keep/info/exclude | 6 +++ .../expected/repo/.git_keep/logs/HEAD | 5 +++ .../repo/.git_keep/logs/refs/heads/master | 5 +++ .../.git_keep/logs/refs/remotes/origin/master | 1 + .../0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 | Bin 0 -> 52 bytes .../18/0cf8328022becee9aaa2577a8f84ea2b9f3827 | Bin 0 -> 21 bytes .../24/351b001b63ca15b6b83542ffb765567e17df23 | Bin 0 -> 147 bytes .../28/9b2354ac3770d96fc3fcfd2a8026fc78a32cc5 | 3 ++ .../2b/173c861df433fa43ffad13f80c8b312c5c8bce | Bin 0 -> 103 bytes .../2f/6174050380438f14b16658a356e762435ca591 | Bin 0 -> 128 bytes .../70/10e33e20178a1a179853948691a9036d48e562 | Bin 0 -> 149 bytes .../99/4a4733eacc0000721e01a177704e2f26216510 | 2 + .../a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 | Bin 0 -> 21 bytes .../a7/341a59f0ddeef969e69fb6368266d22b0f2416 | Bin 0 -> 77 bytes .../d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 | Bin 0 -> 21 bytes .../df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b | Bin 0 -> 21 bytes .../expected/repo/.git_keep/refs/heads/master | 1 + .../repo/.git_keep/refs/remotes/origin/master | 1 + .../unsetUpstream/expected/repo/myfile1 | 1 + .../unsetUpstream/expected/repo/myfile2 | 1 + test/integration/unsetUpstream/recording.json | 1 + test/integration/unsetUpstream/setup.sh | 36 ++++++++++++++++++ test/integration/unsetUpstream/test.json | 1 + 118 files changed, 224 insertions(+), 27 deletions(-) create mode 100644 test/integration/setUpstream/expected/origin/objects/27/58cffdc0d931ff3a3d6c58b75f91ec42981dcf create mode 100644 test/integration/setUpstream/expected/origin/objects/6d/51185514ab4f80b42f17013295c261f92a66f0 create mode 100644 test/integration/setUpstream/expected/origin/objects/9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 create mode 100644 test/integration/setUpstream/expected/origin/objects/ce/3220d7b3cbc57811e3e6169349c611f62a7c42 create mode 100644 test/integration/setUpstream/expected/repo/.git_keep/objects/27/58cffdc0d931ff3a3d6c58b75f91ec42981dcf create mode 100644 test/integration/setUpstream/expected/repo/.git_keep/objects/6d/51185514ab4f80b42f17013295c261f92a66f0 create mode 100644 test/integration/setUpstream/expected/repo/.git_keep/objects/9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 create mode 100644 test/integration/setUpstream/expected/repo/.git_keep/objects/ce/3220d7b3cbc57811e3e6169349c611f62a7c42 create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/HEAD create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/config create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/description create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/info/exclude create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/objects/2f/6174050380438f14b16658a356e762435ca591 rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/origin/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 (100%) rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/origin/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 (100%) rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/origin/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 (100%) create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/origin/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 (100%) create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b create mode 100644 test/integration/setUpstreamThroughPush/expected/origin/packed-refs create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/COMMIT_EDITMSG create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/FETCH_HEAD create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/HEAD create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/ORIG_HEAD create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/config create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/description create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/index create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/info/exclude create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/HEAD create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/refs/heads/master create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/refs/remotes/origin/master create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/repo/.git_keep/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 (100%) rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/repo/.git_keep/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 (100%) rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/repo/.git_keep/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 (100%) create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/repo/.git_keep/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 (100%) create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/refs/heads/master create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/.git_keep/refs/remotes/origin/master create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/myfile1 create mode 100644 test/integration/setUpstreamThroughPush/expected/repo/myfile2 rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/repo/myfile3 (100%) rename test/integration/{setUpstream => setUpstreamThroughPush}/expected/repo/myfile4 (100%) create mode 100644 test/integration/setUpstreamThroughPush/recording.json create mode 100644 test/integration/setUpstreamThroughPush/setup.sh create mode 100644 test/integration/setUpstreamThroughPush/test.json create mode 100644 test/integration/unsetUpstream/expected/origin/HEAD create mode 100644 test/integration/unsetUpstream/expected/origin/config create mode 100644 test/integration/unsetUpstream/expected/origin/description create mode 100644 test/integration/unsetUpstream/expected/origin/info/exclude create mode 100644 test/integration/unsetUpstream/expected/origin/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/24/351b001b63ca15b6b83542ffb765567e17df23 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/28/9b2354ac3770d96fc3fcfd2a8026fc78a32cc5 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce create mode 100644 test/integration/unsetUpstream/expected/origin/objects/2f/6174050380438f14b16658a356e762435ca591 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/70/10e33e20178a1a179853948691a9036d48e562 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/99/4a4733eacc0000721e01a177704e2f26216510 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 create mode 100644 test/integration/unsetUpstream/expected/origin/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b create mode 100644 test/integration/unsetUpstream/expected/origin/packed-refs create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/COMMIT_EDITMSG create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/FETCH_HEAD create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/HEAD create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/ORIG_HEAD create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/config create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/description create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/index create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/info/exclude create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/logs/HEAD create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/logs/refs/heads/master create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/logs/refs/remotes/origin/master create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/24/351b001b63ca15b6b83542ffb765567e17df23 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/28/9b2354ac3770d96fc3fcfd2a8026fc78a32cc5 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/70/10e33e20178a1a179853948691a9036d48e562 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/99/4a4733eacc0000721e01a177704e2f26216510 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/refs/heads/master create mode 100644 test/integration/unsetUpstream/expected/repo/.git_keep/refs/remotes/origin/master create mode 100644 test/integration/unsetUpstream/expected/repo/myfile1 create mode 100644 test/integration/unsetUpstream/expected/repo/myfile2 create mode 100644 test/integration/unsetUpstream/recording.json create mode 100644 test/integration/unsetUpstream/setup.sh create mode 100644 test/integration/unsetUpstream/test.json diff --git a/test/integration/setUpstream/expected/origin/config b/test/integration/setUpstream/expected/origin/config index 63958f045..f97482c61 100644 --- a/test/integration/setUpstream/expected/origin/config +++ b/test/integration/setUpstream/expected/origin/config @@ -2,7 +2,5 @@ repositoryformatversion = 0 filemode = true bare = true - ignorecase = true - precomposeunicode = true [remote "origin"] - url = /Users/jesseduffieldduffield/go/src/github.com/jesseduffield/lazygit/test/integration/setUpstream/actual/./repo + url = /home/mark/Downloads/gits/lazygit/test/integration/setUpstream/actual/./repo diff --git a/test/integration/setUpstream/expected/origin/info/exclude b/test/integration/setUpstream/expected/origin/info/exclude index 8e9f2071f..a5196d1be 100644 --- a/test/integration/setUpstream/expected/origin/info/exclude +++ b/test/integration/setUpstream/expected/origin/info/exclude @@ -4,4 +4,3 @@ # exclude patterns (uncomment them if you want to use them): # *.[oa] # *~ -.DS_Store diff --git a/test/integration/setUpstream/expected/origin/objects/27/58cffdc0d931ff3a3d6c58b75f91ec42981dcf b/test/integration/setUpstream/expected/origin/objects/27/58cffdc0d931ff3a3d6c58b75f91ec42981dcf new file mode 100644 index 0000000000000000000000000000000000000000..099d02445fdf141c28061a77c4b09ac4677e8b68 GIT binary patch literal 149 zcmV;G0BZku0gaA93c@fD06pgwxeJor&88`c2tD-~NxF*#V@rvkzc)|tG%(Cz%2w;z zER6ot4iSqP1}ZVYqMk^TC)Kn7X>=uK0xaBF#O&#iSF>SZfXEC!W#6OhQDJaEIC8-N zI${bzok{QZ*bY0*_BzdX`J}o(EV@rvkzqe2DIt;^1Yio12 zp5m$RBDUlZeMzK_Swsm*khEgJDeLb6z$o8bLODORF^+>)4n<{0_F$l$U1Gs CxJZ8h literal 0 HcmV?d00001 diff --git a/test/integration/setUpstream/expected/origin/objects/9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 b/test/integration/setUpstream/expected/origin/objects/9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 new file mode 100644 index 000000000..7965d6afb --- /dev/null +++ b/test/integration/setUpstream/expected/origin/objects/9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 @@ -0,0 +1,3 @@ +xÍA +Â0@Q×9Å왉“i +"BW=FšL°Ð!R"èííÜ~üÜÌÖÄrê»* J®˜dF…Y)J‰äÕ¾ášrð.½û³í0Íp›æ‡~’½6½äfw èe áŒÑõ˜tý“;ûÖuSr?2X,Ï \ No newline at end of file diff --git a/test/integration/setUpstream/expected/origin/objects/ce/3220d7b3cbc57811e3e6169349c611f62a7c42 b/test/integration/setUpstream/expected/origin/objects/ce/3220d7b3cbc57811e3e6169349c611f62a7c42 new file mode 100644 index 0000000000000000000000000000000000000000..19012a4aa22d268a396f8294b3ad8c7d7a718e78 GIT binary patch literal 151 zcmV;I0BHYs0gcW<3c@fDKvCB@MfQTsB$;UfB0^U^Mw-lE!PrtF=GUPpeB#1KKsgr;yjQh zloDKuSc{tc?vHi1<7BVnbeB(V+fy!OZ8wWd;5ZQldjz literal 0 HcmV?d00001 diff --git a/test/integration/setUpstream/expected/origin/packed-refs b/test/integration/setUpstream/expected/origin/packed-refs index 300d293d2..f854ff120 100644 --- a/test/integration/setUpstream/expected/origin/packed-refs +++ b/test/integration/setUpstream/expected/origin/packed-refs @@ -1,2 +1,2 @@ # pack-refs with: peeled fully-peeled sorted -30ef3df33d31f0b98298881be4dbe69c54758ba2 refs/heads/master +ce3220d7b3cbc57811e3e6169349c611f62a7c42 refs/heads/master diff --git a/test/integration/setUpstream/expected/repo/.git_keep/FETCH_HEAD b/test/integration/setUpstream/expected/repo/.git_keep/FETCH_HEAD index 125d82b6f..b60b7b2a0 100644 --- a/test/integration/setUpstream/expected/repo/.git_keep/FETCH_HEAD +++ b/test/integration/setUpstream/expected/repo/.git_keep/FETCH_HEAD @@ -1 +1 @@ -30ef3df33d31f0b98298881be4dbe69c54758ba2 branch 'master' of ../origin +ce3220d7b3cbc57811e3e6169349c611f62a7c42 not-for-merge branch 'master' of ../origin diff --git a/test/integration/setUpstream/expected/repo/.git_keep/ORIG_HEAD b/test/integration/setUpstream/expected/repo/.git_keep/ORIG_HEAD index 0b53f05ce..6e2a4de9b 100644 --- a/test/integration/setUpstream/expected/repo/.git_keep/ORIG_HEAD +++ b/test/integration/setUpstream/expected/repo/.git_keep/ORIG_HEAD @@ -1 +1 @@ -a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 +ce3220d7b3cbc57811e3e6169349c611f62a7c42 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/config b/test/integration/setUpstream/expected/repo/.git_keep/config index 7721ae814..64b94ff0f 100644 --- a/test/integration/setUpstream/expected/repo/.git_keep/config +++ b/test/integration/setUpstream/expected/repo/.git_keep/config @@ -3,8 +3,6 @@ filemode = true bare = false logallrefupdates = true - ignorecase = true - precomposeunicode = true [user] email = CI@example.com name = CI diff --git a/test/integration/setUpstream/expected/repo/.git_keep/index b/test/integration/setUpstream/expected/repo/.git_keep/index index 99e8224ebe3991142152701cbb94c302261866b1..25d84640330ed656da0cbc4f9d33c92ee8dc0aa6 100644 GIT binary patch delta 149 zcmaFJbdk}(#WTp6fq{Vugp*=ri;Q#HYhW}`Op4*N+-U}e#w834%r8KAqJgS1NZBQa zUtncG8mjCrin0n7(~uxnSD>6EgOP#(*K!l7$Pahl{mgtef16oT+9hp%6)~=*->du< TH5<-0%U#D=&}x^$y!i$I#0D_H literal 353 zcmZ?q402{*U|<4bmL&Tly;^6YSHfsU1_oB9x!1ZG7#f!_Ffe`vsu2NVwxxR>|5Z)B z@g*WOiYMRcLV#CG_f-b=+{(1foK!=g0+4>~2iLB`Xs9`h(9MzH`C-(cwC~)@Rg1!_ z`deOU&$m#AnPUVoXPS65$2*`oU>ai1bz5|E?q~CApDBCxhX0hpA$0*Se~n#7q+#Y5 z!_27*S_U=;NJGuBLpSG=$fx&kRl1``DX vF8#z3R^|rhevyr75sSl~CppI~ohWgYRf*}#6w}}zvyYr 1648346253 +1100 commit (initial): myfile1 -6305259d1908bee46b3b686702ed55b6f12e9ba2 a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 CI 1648346253 +1100 commit: myfile2 -a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 c6ffcbed8902934d462722ff6ef471813b9a4df5 CI 1648346253 +1100 commit: myfile3 -c6ffcbed8902934d462722ff6ef471813b9a4df5 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346253 +1100 commit: myfile4 -30ef3df33d31f0b98298881be4dbe69c54758ba2 a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 CI 1648346253 +1100 reset: moving to HEAD~2 -a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346262 +1100 rebase -i (start): checkout 30ef3df33d31f0b98298881be4dbe69c54758ba2 -30ef3df33d31f0b98298881be4dbe69c54758ba2 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346262 +1100 rebase -i (finish): returning to refs/heads/master +0000000000000000000000000000000000000000 9c663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 CI 1650269554 +0200 commit (initial): myfile1 +9c663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 6d51185514ab4f80b42f17013295c261f92a66f0 CI 1650269554 +0200 commit: myfile2 +6d51185514ab4f80b42f17013295c261f92a66f0 2758cffdc0d931ff3a3d6c58b75f91ec42981dcf CI 1650269554 +0200 commit: myfile3 +2758cffdc0d931ff3a3d6c58b75f91ec42981dcf ce3220d7b3cbc57811e3e6169349c611f62a7c42 CI 1650269554 +0200 commit: myfile4 +ce3220d7b3cbc57811e3e6169349c611f62a7c42 6d51185514ab4f80b42f17013295c261f92a66f0 CI 1650269554 +0200 reset: moving to HEAD~2 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/logs/refs/heads/master b/test/integration/setUpstream/expected/repo/.git_keep/logs/refs/heads/master index e0e98143e..300481fb2 100644 --- a/test/integration/setUpstream/expected/repo/.git_keep/logs/refs/heads/master +++ b/test/integration/setUpstream/expected/repo/.git_keep/logs/refs/heads/master @@ -1,6 +1,5 @@ -0000000000000000000000000000000000000000 6305259d1908bee46b3b686702ed55b6f12e9ba2 CI 1648346253 +1100 commit (initial): myfile1 -6305259d1908bee46b3b686702ed55b6f12e9ba2 a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 CI 1648346253 +1100 commit: myfile2 -a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 c6ffcbed8902934d462722ff6ef471813b9a4df5 CI 1648346253 +1100 commit: myfile3 -c6ffcbed8902934d462722ff6ef471813b9a4df5 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346253 +1100 commit: myfile4 -30ef3df33d31f0b98298881be4dbe69c54758ba2 a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 CI 1648346253 +1100 reset: moving to HEAD~2 -a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346262 +1100 rebase -i (finish): refs/heads/master onto 30ef3df33d31f0b98298881be4dbe69c54758ba2 +0000000000000000000000000000000000000000 9c663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 CI 1650269554 +0200 commit (initial): myfile1 +9c663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 6d51185514ab4f80b42f17013295c261f92a66f0 CI 1650269554 +0200 commit: myfile2 +6d51185514ab4f80b42f17013295c261f92a66f0 2758cffdc0d931ff3a3d6c58b75f91ec42981dcf CI 1650269554 +0200 commit: myfile3 +2758cffdc0d931ff3a3d6c58b75f91ec42981dcf ce3220d7b3cbc57811e3e6169349c611f62a7c42 CI 1650269554 +0200 commit: myfile4 +ce3220d7b3cbc57811e3e6169349c611f62a7c42 6d51185514ab4f80b42f17013295c261f92a66f0 CI 1650269554 +0200 reset: moving to HEAD~2 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/logs/refs/remotes/origin/master b/test/integration/setUpstream/expected/repo/.git_keep/logs/refs/remotes/origin/master index 774c65ed0..ade370956 100644 --- a/test/integration/setUpstream/expected/repo/.git_keep/logs/refs/remotes/origin/master +++ b/test/integration/setUpstream/expected/repo/.git_keep/logs/refs/remotes/origin/master @@ -1 +1 @@ -0000000000000000000000000000000000000000 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346260 +1100 fetch origin: storing head +0000000000000000000000000000000000000000 ce3220d7b3cbc57811e3e6169349c611f62a7c42 CI 1650269559 +0200 fetch origin: storing head diff --git a/test/integration/setUpstream/expected/repo/.git_keep/objects/27/58cffdc0d931ff3a3d6c58b75f91ec42981dcf b/test/integration/setUpstream/expected/repo/.git_keep/objects/27/58cffdc0d931ff3a3d6c58b75f91ec42981dcf new file mode 100644 index 0000000000000000000000000000000000000000..099d02445fdf141c28061a77c4b09ac4677e8b68 GIT binary patch literal 149 zcmV;G0BZku0gaA93c@fD06pgwxeJor&88`c2tD-~NxF*#V@rvkzc)|tG%(Cz%2w;z zER6ot4iSqP1}ZVYqMk^TC)Kn7X>=uK0xaBF#O&#iSF>SZfXEC!W#6OhQDJaEIC8-N zI${bzok{QZ*bY0*_BzdX`J}o(EV@rvkzqe2DIt;^1Yio12 zp5m$RBDUlZeMzK_Swsm*khEgJDeLb6z$o8bLODORF^+>)4n<{0_F$l$U1Gs CxJZ8h literal 0 HcmV?d00001 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/objects/9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 b/test/integration/setUpstream/expected/repo/.git_keep/objects/9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 new file mode 100644 index 000000000..7965d6afb --- /dev/null +++ b/test/integration/setUpstream/expected/repo/.git_keep/objects/9c/663d29d26a71dd67e3bf7b1f2ea73f4939d9e0 @@ -0,0 +1,3 @@ +xÍA +Â0@Q×9Å왉“i +"BW=FšL°Ð!R"èííÜ~üÜÌÖÄrê»* J®˜dF…Y)J‰äÕ¾ášrð.½û³í0Íp›æ‡~’½6½äfw èe áŒÑõ˜tý“;ûÖuSr?2X,Ï \ No newline at end of file diff --git a/test/integration/setUpstream/expected/repo/.git_keep/objects/ce/3220d7b3cbc57811e3e6169349c611f62a7c42 b/test/integration/setUpstream/expected/repo/.git_keep/objects/ce/3220d7b3cbc57811e3e6169349c611f62a7c42 new file mode 100644 index 0000000000000000000000000000000000000000..19012a4aa22d268a396f8294b3ad8c7d7a718e78 GIT binary patch literal 151 zcmV;I0BHYs0gcW<3c@fDKvCB@MfQTsB$;UfB0^U^Mw-lE!PrtF=GUPpeB#1KKsgr;yjQh zloDKuSc{tc?vHi1<7BVnbeB(V+fy!OZ8wWd;5ZQldjz literal 0 HcmV?d00001 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/refs/heads/master b/test/integration/setUpstream/expected/repo/.git_keep/refs/heads/master index af1728373..0147cfa3f 100644 --- a/test/integration/setUpstream/expected/repo/.git_keep/refs/heads/master +++ b/test/integration/setUpstream/expected/repo/.git_keep/refs/heads/master @@ -1 +1 @@ -30ef3df33d31f0b98298881be4dbe69c54758ba2 +6d51185514ab4f80b42f17013295c261f92a66f0 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/refs/remotes/origin/master b/test/integration/setUpstream/expected/repo/.git_keep/refs/remotes/origin/master index af1728373..6e2a4de9b 100644 --- a/test/integration/setUpstream/expected/repo/.git_keep/refs/remotes/origin/master +++ b/test/integration/setUpstream/expected/repo/.git_keep/refs/remotes/origin/master @@ -1 +1 @@ -30ef3df33d31f0b98298881be4dbe69c54758ba2 +ce3220d7b3cbc57811e3e6169349c611f62a7c42 diff --git a/test/integration/setUpstream/recording.json b/test/integration/setUpstream/recording.json index 8776559d9..a84937cc7 100644 --- a/test/integration/setUpstream/recording.json +++ b/test/integration/setUpstream/recording.json @@ -1 +1 @@ -{"KeyEvents":[{"Timestamp":808,"Mod":0,"Key":259,"Ch":0},{"Timestamp":1221,"Mod":0,"Key":256,"Ch":93},{"Timestamp":1598,"Mod":0,"Key":256,"Ch":110},{"Timestamp":2267,"Mod":0,"Key":256,"Ch":111},{"Timestamp":2399,"Mod":0,"Key":256,"Ch":114},{"Timestamp":2500,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2573,"Mod":0,"Key":256,"Ch":103},{"Timestamp":2634,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2710,"Mod":0,"Key":256,"Ch":110},{"Timestamp":3042,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3671,"Mod":0,"Key":256,"Ch":46},{"Timestamp":4001,"Mod":0,"Key":256,"Ch":46},{"Timestamp":4215,"Mod":0,"Key":256,"Ch":47},{"Timestamp":4511,"Mod":0,"Key":256,"Ch":111},{"Timestamp":4896,"Mod":0,"Key":256,"Ch":114},{"Timestamp":5008,"Mod":0,"Key":256,"Ch":105},{"Timestamp":5133,"Mod":0,"Key":256,"Ch":103},{"Timestamp":5202,"Mod":0,"Key":256,"Ch":105},{"Timestamp":5255,"Mod":0,"Key":256,"Ch":110},{"Timestamp":5558,"Mod":0,"Key":13,"Ch":13},{"Timestamp":6247,"Mod":0,"Key":256,"Ch":102},{"Timestamp":7072,"Mod":0,"Key":256,"Ch":91},{"Timestamp":7716,"Mod":0,"Key":256,"Ch":112},{"Timestamp":8319,"Mod":0,"Key":13,"Ch":13},{"Timestamp":9159,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":254,"Height":74}]} \ No newline at end of file +{"KeyEvents":[{"Timestamp":558,"Mod":0,"Key":256,"Ch":108},{"Timestamp":992,"Mod":0,"Key":256,"Ch":93},{"Timestamp":1583,"Mod":0,"Key":256,"Ch":110},{"Timestamp":2109,"Mod":0,"Key":256,"Ch":111},{"Timestamp":2232,"Mod":0,"Key":256,"Ch":114},{"Timestamp":2278,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2413,"Mod":0,"Key":256,"Ch":103},{"Timestamp":2478,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2538,"Mod":0,"Key":256,"Ch":110},{"Timestamp":2831,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3060,"Mod":0,"Key":256,"Ch":46},{"Timestamp":3234,"Mod":0,"Key":256,"Ch":46},{"Timestamp":3293,"Mod":0,"Key":256,"Ch":47},{"Timestamp":3454,"Mod":0,"Key":256,"Ch":111},{"Timestamp":3594,"Mod":0,"Key":256,"Ch":114},{"Timestamp":3632,"Mod":0,"Key":256,"Ch":105},{"Timestamp":3780,"Mod":0,"Key":256,"Ch":103},{"Timestamp":3831,"Mod":0,"Key":256,"Ch":105},{"Timestamp":3890,"Mod":0,"Key":256,"Ch":110},{"Timestamp":4150,"Mod":0,"Key":13,"Ch":13},{"Timestamp":4695,"Mod":0,"Key":256,"Ch":102},{"Timestamp":5433,"Mod":0,"Key":256,"Ch":91},{"Timestamp":6106,"Mod":0,"Key":256,"Ch":117},{"Timestamp":6884,"Mod":0,"Key":256,"Ch":115},{"Timestamp":7833,"Mod":0,"Key":9,"Ch":9},{"Timestamp":8301,"Mod":0,"Key":13,"Ch":13},{"Timestamp":9114,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":239,"Height":55}]} \ No newline at end of file diff --git a/test/integration/setUpstreamThroughPush/expected/origin/HEAD b/test/integration/setUpstreamThroughPush/expected/origin/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/origin/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration/setUpstreamThroughPush/expected/origin/config b/test/integration/setUpstreamThroughPush/expected/origin/config new file mode 100644 index 000000000..63958f045 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/origin/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true + ignorecase = true + precomposeunicode = true +[remote "origin"] + url = /Users/jesseduffieldduffield/go/src/github.com/jesseduffield/lazygit/test/integration/setUpstream/actual/./repo diff --git a/test/integration/setUpstreamThroughPush/expected/origin/description b/test/integration/setUpstreamThroughPush/expected/origin/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/origin/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/setUpstreamThroughPush/expected/origin/info/exclude b/test/integration/setUpstreamThroughPush/expected/origin/info/exclude new file mode 100644 index 000000000..8e9f2071f --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/origin/info/exclude @@ -0,0 +1,7 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ +.DS_Store diff --git a/test/integration/setUpstreamThroughPush/expected/origin/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 b/test/integration/setUpstreamThroughPush/expected/origin/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 new file mode 100644 index 0000000000000000000000000000000000000000..7f2ebf4eeb6ad6875bcc2a2b91ca3345ee06b45e GIT binary patch literal 52 zcmb~ZE#08nZNMgRZ+ literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/origin/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce b/test/integration/setUpstreamThroughPush/expected/origin/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce new file mode 100644 index 0000000000000000000000000000000000000000..0a734f98100d24e67455a3cfa8497adaccc7a422 GIT binary patch literal 103 zcmV-t0GR)H0V^p=O;s>7Fl8__FfcPQQOK=K%gjkNWLUcA@n6-{8($(qqj>V2E(CbB zbYDeLV#FZ9^TVh?Y2Ue*s}_Y<^|!pzo^PR!qQsctem1Z6nX+eZ_)jSuQWx;@*VuJL J8UTCqE3ZN5G4lWb literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/origin/objects/2f/6174050380438f14b16658a356e762435ca591 b/test/integration/setUpstreamThroughPush/expected/origin/objects/2f/6174050380438f14b16658a356e762435ca591 new file mode 100644 index 0000000000000000000000000000000000000000..31ae3f5ba89b96ad2e268134913bd913a0bc46d9 GIT binary patch literal 128 zcmV-`0Du2@0V^p=O;s>7F<>w>FfcPQQOK=K%gjkNWLUcA@n6-{8($(qqj>V2E(CbB zbYDeLV#FZ9^TVh?Y2Ue*s}_Y<^|!pzo^PR!qQsctem1Z6nX+eZ_)jSuQWx;@*VuJL i8byf-!zGiW55oT$9V>g4{^GR7m!#NRuR{Q5NjxpS$UUzB literal 0 HcmV?d00001 diff --git a/test/integration/setUpstream/expected/origin/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 b/test/integration/setUpstreamThroughPush/expected/origin/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 similarity index 100% rename from test/integration/setUpstream/expected/origin/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 rename to test/integration/setUpstreamThroughPush/expected/origin/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 diff --git a/test/integration/setUpstream/expected/origin/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 b/test/integration/setUpstreamThroughPush/expected/origin/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 similarity index 100% rename from test/integration/setUpstream/expected/origin/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 rename to test/integration/setUpstreamThroughPush/expected/origin/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 diff --git a/test/integration/setUpstream/expected/origin/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 b/test/integration/setUpstreamThroughPush/expected/origin/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 similarity index 100% rename from test/integration/setUpstream/expected/origin/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 rename to test/integration/setUpstreamThroughPush/expected/origin/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 diff --git a/test/integration/setUpstreamThroughPush/expected/origin/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 b/test/integration/setUpstreamThroughPush/expected/origin/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 new file mode 100644 index 0000000000000000000000000000000000000000..285df3e5fbab12262e28d85e78af8a31cd0024c1 GIT binary patch literal 21 ccmb`~^A08nuUMF0Q* literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/origin/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 b/test/integration/setUpstreamThroughPush/expected/origin/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 new file mode 100644 index 0000000000000000000000000000000000000000..96d2e71a6af75cdd27ac5d9628a27faecc40fb66 GIT binary patch literal 77 zcmV-T0J8sh0V^p=O;s>AU@$Z=Ff%bx$gNDv%tB=N-?^8o7KK;!x4hDxZ=ntVWIZ01*pecg literal 0 HcmV?d00001 diff --git a/test/integration/setUpstream/expected/origin/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 b/test/integration/setUpstreamThroughPush/expected/origin/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 similarity index 100% rename from test/integration/setUpstream/expected/origin/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 rename to test/integration/setUpstreamThroughPush/expected/origin/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 diff --git a/test/integration/setUpstreamThroughPush/expected/origin/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 b/test/integration/setUpstreamThroughPush/expected/origin/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 new file mode 100644 index 0000000000000000000000000000000000000000..d39fa7d2fecf1c45a132dfe3a8758952f3c8d968 GIT binary patch literal 21 ccmb}lpN08nuUO8@`> literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/origin/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b b/test/integration/setUpstreamThroughPush/expected/origin/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b new file mode 100644 index 0000000000000000000000000000000000000000..9b771fc2f6f41f91b00976b4ff3f8f9935f7931e GIT binary patch literal 21 ccmb>`CU&08otwO#lD@ literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/origin/packed-refs b/test/integration/setUpstreamThroughPush/expected/origin/packed-refs new file mode 100644 index 000000000..300d293d2 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/origin/packed-refs @@ -0,0 +1,2 @@ +# pack-refs with: peeled fully-peeled sorted +30ef3df33d31f0b98298881be4dbe69c54758ba2 refs/heads/master diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/COMMIT_EDITMSG b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/COMMIT_EDITMSG new file mode 100644 index 000000000..51be8ec3d --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/COMMIT_EDITMSG @@ -0,0 +1 @@ +myfile4 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/FETCH_HEAD b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/FETCH_HEAD new file mode 100644 index 000000000..125d82b6f --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/FETCH_HEAD @@ -0,0 +1 @@ +30ef3df33d31f0b98298881be4dbe69c54758ba2 branch 'master' of ../origin diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/HEAD b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/ORIG_HEAD b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/ORIG_HEAD new file mode 100644 index 000000000..0b53f05ce --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/ORIG_HEAD @@ -0,0 +1 @@ +a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/config b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/config new file mode 100644 index 000000000..7721ae814 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/config @@ -0,0 +1,16 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true + ignorecase = true + precomposeunicode = true +[user] + email = CI@example.com + name = CI +[remote "origin"] + url = ../origin + fetch = +refs/heads/*:refs/remotes/origin/* +[branch "master"] + remote = origin + merge = refs/heads/master diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/description b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/index b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/index new file mode 100644 index 0000000000000000000000000000000000000000..99e8224ebe3991142152701cbb94c302261866b1 GIT binary patch literal 353 zcmZ?q402{*U|<4bmL&Tly;^6YSHfsU1_oB9x!1ZG7#f!_Ffe`vsu2NVwxxR>|5Z)B z@g*WOiYMRcLV#CG_f-b=+{(1foK!=g0+4>~2iLB`Xs9`h(9MzH`C-(cwC~)@Rg1!_ z`deOU&$m#AnPUVoXPS65$2*`oU>ai1bz5|E?q~CApDBCxhX0hpA$0*Se~n#7q+#Y5 z!_27*S_U=;NJGuBLpSG=$fx&kRl1``DX vF8#z3R^|rhevyr75sSl~CppI~ohWgYRf*}#6w}}zvyYr 1648346253 +1100 commit (initial): myfile1 +6305259d1908bee46b3b686702ed55b6f12e9ba2 a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 CI 1648346253 +1100 commit: myfile2 +a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 c6ffcbed8902934d462722ff6ef471813b9a4df5 CI 1648346253 +1100 commit: myfile3 +c6ffcbed8902934d462722ff6ef471813b9a4df5 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346253 +1100 commit: myfile4 +30ef3df33d31f0b98298881be4dbe69c54758ba2 a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 CI 1648346253 +1100 reset: moving to HEAD~2 +a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346262 +1100 rebase -i (start): checkout 30ef3df33d31f0b98298881be4dbe69c54758ba2 +30ef3df33d31f0b98298881be4dbe69c54758ba2 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346262 +1100 rebase -i (finish): returning to refs/heads/master diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/refs/heads/master b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/refs/heads/master new file mode 100644 index 000000000..e0e98143e --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/refs/heads/master @@ -0,0 +1,6 @@ +0000000000000000000000000000000000000000 6305259d1908bee46b3b686702ed55b6f12e9ba2 CI 1648346253 +1100 commit (initial): myfile1 +6305259d1908bee46b3b686702ed55b6f12e9ba2 a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 CI 1648346253 +1100 commit: myfile2 +a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 c6ffcbed8902934d462722ff6ef471813b9a4df5 CI 1648346253 +1100 commit: myfile3 +c6ffcbed8902934d462722ff6ef471813b9a4df5 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346253 +1100 commit: myfile4 +30ef3df33d31f0b98298881be4dbe69c54758ba2 a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 CI 1648346253 +1100 reset: moving to HEAD~2 +a26a9d22097eb77a8cf2fbb18512aa44c0c536a2 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346262 +1100 rebase -i (finish): refs/heads/master onto 30ef3df33d31f0b98298881be4dbe69c54758ba2 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/refs/remotes/origin/master b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/refs/remotes/origin/master new file mode 100644 index 000000000..774c65ed0 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/logs/refs/remotes/origin/master @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 30ef3df33d31f0b98298881be4dbe69c54758ba2 CI 1648346260 +1100 fetch origin: storing head diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 new file mode 100644 index 0000000000000000000000000000000000000000..7f2ebf4eeb6ad6875bcc2a2b91ca3345ee06b45e GIT binary patch literal 52 zcmb~ZE#08nZNMgRZ+ literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce new file mode 100644 index 0000000000000000000000000000000000000000..0a734f98100d24e67455a3cfa8497adaccc7a422 GIT binary patch literal 103 zcmV-t0GR)H0V^p=O;s>7Fl8__FfcPQQOK=K%gjkNWLUcA@n6-{8($(qqj>V2E(CbB zbYDeLV#FZ9^TVh?Y2Ue*s}_Y<^|!pzo^PR!qQsctem1Z6nX+eZ_)jSuQWx;@*VuJL J8UTCqE3ZN5G4lWb literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 new file mode 100644 index 0000000000000000000000000000000000000000..31ae3f5ba89b96ad2e268134913bd913a0bc46d9 GIT binary patch literal 128 zcmV-`0Du2@0V^p=O;s>7F<>w>FfcPQQOK=K%gjkNWLUcA@n6-{8($(qqj>V2E(CbB zbYDeLV#FZ9^TVh?Y2Ue*s}_Y<^|!pzo^PR!qQsctem1Z6nX+eZ_)jSuQWx;@*VuJL i8byf-!zGiW55oT$9V>g4{^GR7m!#NRuR{Q5NjxpS$UUzB literal 0 HcmV?d00001 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 similarity index 100% rename from test/integration/setUpstream/expected/repo/.git_keep/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 rename to test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/30/ef3df33d31f0b98298881be4dbe69c54758ba2 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 similarity index 100% rename from test/integration/setUpstream/expected/repo/.git_keep/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 rename to test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/63/05259d1908bee46b3b686702ed55b6f12e9ba2 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 similarity index 100% rename from test/integration/setUpstream/expected/repo/.git_keep/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 rename to test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/a2/6a9d22097eb77a8cf2fbb18512aa44c0c536a2 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 new file mode 100644 index 0000000000000000000000000000000000000000..285df3e5fbab12262e28d85e78af8a31cd0024c1 GIT binary patch literal 21 ccmb`~^A08nuUMF0Q* literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 new file mode 100644 index 0000000000000000000000000000000000000000..96d2e71a6af75cdd27ac5d9628a27faecc40fb66 GIT binary patch literal 77 zcmV-T0J8sh0V^p=O;s>AU@$Z=Ff%bx$gNDv%tB=N-?^8o7KK;!x4hDxZ=ntVWIZ01*pecg literal 0 HcmV?d00001 diff --git a/test/integration/setUpstream/expected/repo/.git_keep/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 similarity index 100% rename from test/integration/setUpstream/expected/repo/.git_keep/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 rename to test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/c6/ffcbed8902934d462722ff6ef471813b9a4df5 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 new file mode 100644 index 0000000000000000000000000000000000000000..d39fa7d2fecf1c45a132dfe3a8758952f3c8d968 GIT binary patch literal 21 ccmb}lpN08nuUO8@`> literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b new file mode 100644 index 0000000000000000000000000000000000000000..9b771fc2f6f41f91b00976b4ff3f8f9935f7931e GIT binary patch literal 21 ccmb>`CU&08otwO#lD@ literal 0 HcmV?d00001 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/refs/heads/master b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/refs/heads/master new file mode 100644 index 000000000..af1728373 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/refs/heads/master @@ -0,0 +1 @@ +30ef3df33d31f0b98298881be4dbe69c54758ba2 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/refs/remotes/origin/master b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/refs/remotes/origin/master new file mode 100644 index 000000000..af1728373 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/.git_keep/refs/remotes/origin/master @@ -0,0 +1 @@ +30ef3df33d31f0b98298881be4dbe69c54758ba2 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/myfile1 b/test/integration/setUpstreamThroughPush/expected/repo/myfile1 new file mode 100644 index 000000000..a5bce3fd2 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/myfile1 @@ -0,0 +1 @@ +test1 diff --git a/test/integration/setUpstreamThroughPush/expected/repo/myfile2 b/test/integration/setUpstreamThroughPush/expected/repo/myfile2 new file mode 100644 index 000000000..180cf8328 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/expected/repo/myfile2 @@ -0,0 +1 @@ +test2 diff --git a/test/integration/setUpstream/expected/repo/myfile3 b/test/integration/setUpstreamThroughPush/expected/repo/myfile3 similarity index 100% rename from test/integration/setUpstream/expected/repo/myfile3 rename to test/integration/setUpstreamThroughPush/expected/repo/myfile3 diff --git a/test/integration/setUpstream/expected/repo/myfile4 b/test/integration/setUpstreamThroughPush/expected/repo/myfile4 similarity index 100% rename from test/integration/setUpstream/expected/repo/myfile4 rename to test/integration/setUpstreamThroughPush/expected/repo/myfile4 diff --git a/test/integration/setUpstreamThroughPush/recording.json b/test/integration/setUpstreamThroughPush/recording.json new file mode 100644 index 000000000..8776559d9 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/recording.json @@ -0,0 +1 @@ +{"KeyEvents":[{"Timestamp":808,"Mod":0,"Key":259,"Ch":0},{"Timestamp":1221,"Mod":0,"Key":256,"Ch":93},{"Timestamp":1598,"Mod":0,"Key":256,"Ch":110},{"Timestamp":2267,"Mod":0,"Key":256,"Ch":111},{"Timestamp":2399,"Mod":0,"Key":256,"Ch":114},{"Timestamp":2500,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2573,"Mod":0,"Key":256,"Ch":103},{"Timestamp":2634,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2710,"Mod":0,"Key":256,"Ch":110},{"Timestamp":3042,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3671,"Mod":0,"Key":256,"Ch":46},{"Timestamp":4001,"Mod":0,"Key":256,"Ch":46},{"Timestamp":4215,"Mod":0,"Key":256,"Ch":47},{"Timestamp":4511,"Mod":0,"Key":256,"Ch":111},{"Timestamp":4896,"Mod":0,"Key":256,"Ch":114},{"Timestamp":5008,"Mod":0,"Key":256,"Ch":105},{"Timestamp":5133,"Mod":0,"Key":256,"Ch":103},{"Timestamp":5202,"Mod":0,"Key":256,"Ch":105},{"Timestamp":5255,"Mod":0,"Key":256,"Ch":110},{"Timestamp":5558,"Mod":0,"Key":13,"Ch":13},{"Timestamp":6247,"Mod":0,"Key":256,"Ch":102},{"Timestamp":7072,"Mod":0,"Key":256,"Ch":91},{"Timestamp":7716,"Mod":0,"Key":256,"Ch":112},{"Timestamp":8319,"Mod":0,"Key":13,"Ch":13},{"Timestamp":9159,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":254,"Height":74}]} \ No newline at end of file diff --git a/test/integration/setUpstreamThroughPush/setup.sh b/test/integration/setUpstreamThroughPush/setup.sh new file mode 100644 index 000000000..d0bc91327 --- /dev/null +++ b/test/integration/setUpstreamThroughPush/setup.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +set -e + +cd $1 + +git init + +git config user.email "CI@example.com" +git config user.name "CI" + +echo test1 > myfile1 +git add . +git commit -am "myfile1" +echo test2 > myfile2 +git add . +git commit -am "myfile2" +echo test3 > myfile3 +git add . +git commit -am "myfile3" +echo test4 > myfile4 +git add . +git commit -am "myfile4" + +cd .. +git clone --bare ./repo origin + +cd repo + +git reset --hard HEAD~2 diff --git a/test/integration/setUpstreamThroughPush/test.json b/test/integration/setUpstreamThroughPush/test.json new file mode 100644 index 000000000..11fdee3ab --- /dev/null +++ b/test/integration/setUpstreamThroughPush/test.json @@ -0,0 +1 @@ +{ "description": "allow setting the upstream of the current branch when pushing", "speed": 10 } diff --git a/test/integration/unsetUpstream/expected/origin/HEAD b/test/integration/unsetUpstream/expected/origin/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration/unsetUpstream/expected/origin/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration/unsetUpstream/expected/origin/config b/test/integration/unsetUpstream/expected/origin/config new file mode 100644 index 000000000..56c5e2484 --- /dev/null +++ b/test/integration/unsetUpstream/expected/origin/config @@ -0,0 +1,6 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = /home/mark/Downloads/gits/lazygit/test/integration/unsetUpstream/actual/./repo diff --git a/test/integration/unsetUpstream/expected/origin/description b/test/integration/unsetUpstream/expected/origin/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration/unsetUpstream/expected/origin/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/unsetUpstream/expected/origin/info/exclude b/test/integration/unsetUpstream/expected/origin/info/exclude new file mode 100644 index 000000000..a5196d1be --- /dev/null +++ b/test/integration/unsetUpstream/expected/origin/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/test/integration/unsetUpstream/expected/origin/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 b/test/integration/unsetUpstream/expected/origin/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 new file mode 100644 index 0000000000000000000000000000000000000000..7f2ebf4eeb6ad6875bcc2a2b91ca3345ee06b45e GIT binary patch literal 52 zcmb~ZE#08nZNMgRZ+ literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/origin/objects/24/351b001b63ca15b6b83542ffb765567e17df23 b/test/integration/unsetUpstream/expected/origin/objects/24/351b001b63ca15b6b83542ffb765567e17df23 new file mode 100644 index 0000000000000000000000000000000000000000..5167b74e45597d6563be14ade4ece72fa09c2b49 GIT binary patch literal 147 zcmV;E0Brww0gaA93c@fD06pgwxeKzp*<>3K5qjz~*09AwV@rvkzc){Cj>87Fl8__FfcPQQOK=K%gjkNWLUcA@n6-{8($(qqj>V2E(CbB zbYDeLV#FZ9^TVh?Y2Ue*s}_Y<^|!pzo^PR!qQsctem1Z6nX+eZ_)jSuQWx;@*VuJL J8UTCqE3ZN5G4lWb literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/origin/objects/2f/6174050380438f14b16658a356e762435ca591 b/test/integration/unsetUpstream/expected/origin/objects/2f/6174050380438f14b16658a356e762435ca591 new file mode 100644 index 0000000000000000000000000000000000000000..31ae3f5ba89b96ad2e268134913bd913a0bc46d9 GIT binary patch literal 128 zcmV-`0Du2@0V^p=O;s>7F<>w>FfcPQQOK=K%gjkNWLUcA@n6-{8($(qqj>V2E(CbB zbYDeLV#FZ9^TVh?Y2Ue*s}_Y<^|!pzo^PR!qQsctem1Z6nX+eZ_)jSuQWx;@*VuJL i8byf-!zGiW55oT$9V>g4{^GR7m!#NRuR{Q5NjxpS$UUzB literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/origin/objects/70/10e33e20178a1a179853948691a9036d48e562 b/test/integration/unsetUpstream/expected/origin/objects/70/10e33e20178a1a179853948691a9036d48e562 new file mode 100644 index 0000000000000000000000000000000000000000..33c505be28a045db5c244dba95e61a1b8b0cfc0b GIT binary patch literal 149 zcmV;G0BZku0gaA93d0}}0DJZo-U~%nU0o=pkW-#vbe9Hd6M}{I_w@-q&M=25TWf3A zmi(z7%sNNsZ4M-+R%Rh2Mv?^`CP1tJixKb^)t(Q2bq$FYaKY!|Vl`~^A08nuUMF0Q* literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/origin/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 b/test/integration/unsetUpstream/expected/origin/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 new file mode 100644 index 0000000000000000000000000000000000000000..96d2e71a6af75cdd27ac5d9628a27faecc40fb66 GIT binary patch literal 77 zcmV-T0J8sh0V^p=O;s>AU@$Z=Ff%bx$gNDv%tB=N-?^8o7KK;!x4hDxZ=ntVWIZ01*pecg literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/origin/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 b/test/integration/unsetUpstream/expected/origin/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 new file mode 100644 index 0000000000000000000000000000000000000000..d39fa7d2fecf1c45a132dfe3a8758952f3c8d968 GIT binary patch literal 21 ccmb}lpN08nuUO8@`> literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/origin/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b b/test/integration/unsetUpstream/expected/origin/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b new file mode 100644 index 0000000000000000000000000000000000000000..9b771fc2f6f41f91b00976b4ff3f8f9935f7931e GIT binary patch literal 21 ccmb>`CU&08otwO#lD@ literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/origin/packed-refs b/test/integration/unsetUpstream/expected/origin/packed-refs new file mode 100644 index 000000000..e06647f53 --- /dev/null +++ b/test/integration/unsetUpstream/expected/origin/packed-refs @@ -0,0 +1,2 @@ +# pack-refs with: peeled fully-peeled sorted +24351b001b63ca15b6b83542ffb765567e17df23 refs/heads/master diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/COMMIT_EDITMSG b/test/integration/unsetUpstream/expected/repo/.git_keep/COMMIT_EDITMSG new file mode 100644 index 000000000..51be8ec3d --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/COMMIT_EDITMSG @@ -0,0 +1 @@ +myfile4 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/FETCH_HEAD b/test/integration/unsetUpstream/expected/repo/.git_keep/FETCH_HEAD new file mode 100644 index 000000000..e19f7f35c --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/FETCH_HEAD @@ -0,0 +1 @@ +24351b001b63ca15b6b83542ffb765567e17df23 branch 'master' of ../origin diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/HEAD b/test/integration/unsetUpstream/expected/repo/.git_keep/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/ORIG_HEAD b/test/integration/unsetUpstream/expected/repo/.git_keep/ORIG_HEAD new file mode 100644 index 000000000..6f628d611 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/ORIG_HEAD @@ -0,0 +1 @@ +24351b001b63ca15b6b83542ffb765567e17df23 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/config b/test/integration/unsetUpstream/expected/repo/.git_keep/config new file mode 100644 index 000000000..6ee7a0eac --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/config @@ -0,0 +1,11 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true +[user] + email = CI@example.com + name = CI +[remote "origin"] + url = ../origin + fetch = +refs/heads/*:refs/remotes/origin/* diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/description b/test/integration/unsetUpstream/expected/repo/.git_keep/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/index b/test/integration/unsetUpstream/expected/repo/.git_keep/index new file mode 100644 index 0000000000000000000000000000000000000000..44c532da33ec09a2a3006010b770202174fa0a50 GIT binary patch literal 209 zcmZ?q402{*U|<5_q*ysWhI@CoU^Gxnis7^JHwK2rB@7JAFCdtKZRwuJe^pa&e2EB+ z;>mZq5a89)eU*Vdw=yj=C)E(B38bIVWoieEhM1$mfo_fj&kv&prG4jKu38jc)!*_; zd%lG_%p4=2rjQ_4S0E+HV5DHcwcJE1^26PCKQo`r-)7d7c1fFGMQr8Qr|kB3mdHOb PJiMkg?vU0kuaG1F$8bf$ literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/info/exclude b/test/integration/unsetUpstream/expected/repo/.git_keep/info/exclude new file mode 100644 index 000000000..a5196d1be --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/logs/HEAD b/test/integration/unsetUpstream/expected/repo/.git_keep/logs/HEAD new file mode 100644 index 000000000..1bc609ea6 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/logs/HEAD @@ -0,0 +1,5 @@ +0000000000000000000000000000000000000000 289b2354ac3770d96fc3fcfd2a8026fc78a32cc5 CI 1650269774 +0200 commit (initial): myfile1 +289b2354ac3770d96fc3fcfd2a8026fc78a32cc5 7010e33e20178a1a179853948691a9036d48e562 CI 1650269774 +0200 commit: myfile2 +7010e33e20178a1a179853948691a9036d48e562 994a4733eacc0000721e01a177704e2f26216510 CI 1650269774 +0200 commit: myfile3 +994a4733eacc0000721e01a177704e2f26216510 24351b001b63ca15b6b83542ffb765567e17df23 CI 1650269774 +0200 commit: myfile4 +24351b001b63ca15b6b83542ffb765567e17df23 7010e33e20178a1a179853948691a9036d48e562 CI 1650269774 +0200 reset: moving to HEAD~2 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/logs/refs/heads/master b/test/integration/unsetUpstream/expected/repo/.git_keep/logs/refs/heads/master new file mode 100644 index 000000000..1bc609ea6 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/logs/refs/heads/master @@ -0,0 +1,5 @@ +0000000000000000000000000000000000000000 289b2354ac3770d96fc3fcfd2a8026fc78a32cc5 CI 1650269774 +0200 commit (initial): myfile1 +289b2354ac3770d96fc3fcfd2a8026fc78a32cc5 7010e33e20178a1a179853948691a9036d48e562 CI 1650269774 +0200 commit: myfile2 +7010e33e20178a1a179853948691a9036d48e562 994a4733eacc0000721e01a177704e2f26216510 CI 1650269774 +0200 commit: myfile3 +994a4733eacc0000721e01a177704e2f26216510 24351b001b63ca15b6b83542ffb765567e17df23 CI 1650269774 +0200 commit: myfile4 +24351b001b63ca15b6b83542ffb765567e17df23 7010e33e20178a1a179853948691a9036d48e562 CI 1650269774 +0200 reset: moving to HEAD~2 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/logs/refs/remotes/origin/master b/test/integration/unsetUpstream/expected/repo/.git_keep/logs/refs/remotes/origin/master new file mode 100644 index 000000000..cbf8607af --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/logs/refs/remotes/origin/master @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 24351b001b63ca15b6b83542ffb765567e17df23 CI 1650269774 +0200 fetch origin: storing head diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 b/test/integration/unsetUpstream/expected/repo/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52 new file mode 100644 index 0000000000000000000000000000000000000000..7f2ebf4eeb6ad6875bcc2a2b91ca3345ee06b45e GIT binary patch literal 52 zcmb~ZE#08nZNMgRZ+ literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/objects/24/351b001b63ca15b6b83542ffb765567e17df23 b/test/integration/unsetUpstream/expected/repo/.git_keep/objects/24/351b001b63ca15b6b83542ffb765567e17df23 new file mode 100644 index 0000000000000000000000000000000000000000..5167b74e45597d6563be14ade4ece72fa09c2b49 GIT binary patch literal 147 zcmV;E0Brww0gaA93c@fD06pgwxeKzp*<>3K5qjz~*09AwV@rvkzc){Cj>87Fl8__FfcPQQOK=K%gjkNWLUcA@n6-{8($(qqj>V2E(CbB zbYDeLV#FZ9^TVh?Y2Ue*s}_Y<^|!pzo^PR!qQsctem1Z6nX+eZ_)jSuQWx;@*VuJL J8UTCqE3ZN5G4lWb literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 b/test/integration/unsetUpstream/expected/repo/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591 new file mode 100644 index 0000000000000000000000000000000000000000..31ae3f5ba89b96ad2e268134913bd913a0bc46d9 GIT binary patch literal 128 zcmV-`0Du2@0V^p=O;s>7F<>w>FfcPQQOK=K%gjkNWLUcA@n6-{8($(qqj>V2E(CbB zbYDeLV#FZ9^TVh?Y2Ue*s}_Y<^|!pzo^PR!qQsctem1Z6nX+eZ_)jSuQWx;@*VuJL i8byf-!zGiW55oT$9V>g4{^GR7m!#NRuR{Q5NjxpS$UUzB literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/objects/70/10e33e20178a1a179853948691a9036d48e562 b/test/integration/unsetUpstream/expected/repo/.git_keep/objects/70/10e33e20178a1a179853948691a9036d48e562 new file mode 100644 index 0000000000000000000000000000000000000000..33c505be28a045db5c244dba95e61a1b8b0cfc0b GIT binary patch literal 149 zcmV;G0BZku0gaA93d0}}0DJZo-U~%nU0o=pkW-#vbe9Hd6M}{I_w@-q&M=25TWf3A zmi(z7%sNNsZ4M-+R%Rh2Mv?^`CP1tJixKb^)t(Q2bq$FYaKY!|Vl`~^A08nuUMF0Q* literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 b/test/integration/unsetUpstream/expected/repo/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416 new file mode 100644 index 0000000000000000000000000000000000000000..96d2e71a6af75cdd27ac5d9628a27faecc40fb66 GIT binary patch literal 77 zcmV-T0J8sh0V^p=O;s>AU@$Z=Ff%bx$gNDv%tB=N-?^8o7KK;!x4hDxZ=ntVWIZ01*pecg literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 b/test/integration/unsetUpstream/expected/repo/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54 new file mode 100644 index 0000000000000000000000000000000000000000..d39fa7d2fecf1c45a132dfe3a8758952f3c8d968 GIT binary patch literal 21 ccmb}lpN08nuUO8@`> literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b b/test/integration/unsetUpstream/expected/repo/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b new file mode 100644 index 0000000000000000000000000000000000000000..9b771fc2f6f41f91b00976b4ff3f8f9935f7931e GIT binary patch literal 21 ccmb>`CU&08otwO#lD@ literal 0 HcmV?d00001 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/refs/heads/master b/test/integration/unsetUpstream/expected/repo/.git_keep/refs/heads/master new file mode 100644 index 000000000..3bfa11663 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/refs/heads/master @@ -0,0 +1 @@ +7010e33e20178a1a179853948691a9036d48e562 diff --git a/test/integration/unsetUpstream/expected/repo/.git_keep/refs/remotes/origin/master b/test/integration/unsetUpstream/expected/repo/.git_keep/refs/remotes/origin/master new file mode 100644 index 000000000..6f628d611 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/.git_keep/refs/remotes/origin/master @@ -0,0 +1 @@ +24351b001b63ca15b6b83542ffb765567e17df23 diff --git a/test/integration/unsetUpstream/expected/repo/myfile1 b/test/integration/unsetUpstream/expected/repo/myfile1 new file mode 100644 index 000000000..a5bce3fd2 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/myfile1 @@ -0,0 +1 @@ +test1 diff --git a/test/integration/unsetUpstream/expected/repo/myfile2 b/test/integration/unsetUpstream/expected/repo/myfile2 new file mode 100644 index 000000000..180cf8328 --- /dev/null +++ b/test/integration/unsetUpstream/expected/repo/myfile2 @@ -0,0 +1 @@ +test2 diff --git a/test/integration/unsetUpstream/recording.json b/test/integration/unsetUpstream/recording.json new file mode 100644 index 000000000..55de5696a --- /dev/null +++ b/test/integration/unsetUpstream/recording.json @@ -0,0 +1 @@ +{"KeyEvents":[{"Timestamp":1106,"Mod":0,"Key":256,"Ch":108},{"Timestamp":1714,"Mod":0,"Key":256,"Ch":117},{"Timestamp":2494,"Mod":0,"Key":256,"Ch":117},{"Timestamp":3449,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":239,"Height":55}]} \ No newline at end of file diff --git a/test/integration/unsetUpstream/setup.sh b/test/integration/unsetUpstream/setup.sh new file mode 100644 index 000000000..bd33f9f6d --- /dev/null +++ b/test/integration/unsetUpstream/setup.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +set -e + +set -e + +cd $1 + +git init + +git config user.email "CI@example.com" +git config user.name "CI" + +echo test1 > myfile1 +git add . +git commit -am "myfile1" +echo test2 > myfile2 +git add . +git commit -am "myfile2" +echo test3 > myfile3 +git add . +git commit -am "myfile3" +echo test4 > myfile4 +git add . +git commit -am "myfile4" + +cd .. +git clone --bare ./repo origin + +cd repo + +git reset --hard HEAD~2 +git remote add origin ../origin +git fetch origin +git branch --set-upstream-to=origin/master + diff --git a/test/integration/unsetUpstream/test.json b/test/integration/unsetUpstream/test.json new file mode 100644 index 000000000..dffe129cd --- /dev/null +++ b/test/integration/unsetUpstream/test.json @@ -0,0 +1 @@ +{ "description": "allow unsetting the upstream of the current branch", "speed": 10 }