forked from jesseduffield/lazygit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/origin/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/heads/master |
6 changes: 6 additions & 0 deletions
6
test/integration/fetchRemoteBranchWithNonmatchingName/expected/origin/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = true | ||
bare = true | ||
[remote "origin"] | ||
url = /home/mark/Downloads/gits/lazygit/test/integration/fetchRemoteBranchWithNonmatchingName/actual/./repo |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/origin/description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unnamed repository; edit this file 'description' to name the repository. |
6 changes: 6 additions & 0 deletions
6
test/integration/fetchRemoteBranchWithNonmatchingName/expected/origin/info/exclude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] | ||
# *~ |
Binary file added
BIN
+52 Bytes
...anchWithNonmatchingName/expected/origin/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52
Binary file not shown.
Binary file added
BIN
+149 Bytes
...anchWithNonmatchingName/expected/origin/objects/12/d38e54cd419303587ba4613fb1194ec5c9d04f
Binary file not shown.
Binary file added
BIN
+21 Bytes
...anchWithNonmatchingName/expected/origin/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827
Binary file not shown.
Binary file added
BIN
+103 Bytes
...anchWithNonmatchingName/expected/origin/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce
Binary file not shown.
Binary file added
BIN
+128 Bytes
...anchWithNonmatchingName/expected/origin/objects/2f/6174050380438f14b16658a356e762435ca591
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...anchWithNonmatchingName/expected/origin/objects/3e/5a250f3b6d2ea4ea93b3006aaceeb75bb8d0b6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
x��A | ||
�0@Q�9�����I | ||
"BW=F�L��!R"����~�����r�*�J��d ��¬�D�j���E��<x����v�f�M�C?�^�^r�;�L9�pF��zL��ɝ}�)�2�,� |
2 changes: 2 additions & 0 deletions
2
...anchWithNonmatchingName/expected/origin/objects/72/ee6cc86de71389b9c70e24c7d8c8837e7d3566
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+21 Bytes
...anchWithNonmatchingName/expected/origin/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5
Binary file not shown.
Binary file added
BIN
+77 Bytes
...anchWithNonmatchingName/expected/origin/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416
Binary file not shown.
Binary file added
BIN
+149 Bytes
...anchWithNonmatchingName/expected/origin/objects/b0/90d7f0029e74de260f7458721b8edd1e618edc
Binary file not shown.
Binary file added
BIN
+21 Bytes
...anchWithNonmatchingName/expected/origin/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54
Binary file not shown.
Binary file added
BIN
+21 Bytes
...anchWithNonmatchingName/expected/origin/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
test/integration/fetchRemoteBranchWithNonmatchingName/expected/origin/packed-refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# pack-refs with: peeled fully-peeled sorted | ||
b090d7f0029e74de260f7458721b8edd1e618edc refs/heads/master |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/COMMIT_EDITMSG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
myfile4 |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/FETCH_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
b090d7f0029e74de260f7458721b8edd1e618edc branch 'master' of ../origin |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/heads/master-local |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/ORIG_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12d38e54cd419303587ba4613fb1194ec5c9d04f |
14 changes: 14 additions & 0 deletions
14
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = true | ||
bare = false | ||
logallrefupdates = true | ||
[user] | ||
email = [email protected] | ||
name = CI | ||
[remote "origin"] | ||
url = ../origin | ||
fetch = +refs/heads/*:refs/remotes/origin/* | ||
[branch "master-local"] | ||
remote = origin | ||
merge = refs/heads/master |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unnamed repository; edit this file 'description' to name the repository. |
Binary file added
BIN
+353 Bytes
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/index
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/info/exclude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] | ||
# *~ |
8 changes: 8 additions & 0 deletions
8
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/logs/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
0000000000000000000000000000000000000000 3e5a250f3b6d2ea4ea93b3006aaceeb75bb8d0b6 CI <[email protected]> 1654108479 +0200 commit (initial): myfile1 | ||
3e5a250f3b6d2ea4ea93b3006aaceeb75bb8d0b6 12d38e54cd419303587ba4613fb1194ec5c9d04f CI <[email protected]> 1654108479 +0200 commit: myfile2 | ||
12d38e54cd419303587ba4613fb1194ec5c9d04f 72ee6cc86de71389b9c70e24c7d8c8837e7d3566 CI <[email protected]> 1654108479 +0200 commit: myfile3 | ||
72ee6cc86de71389b9c70e24c7d8c8837e7d3566 b090d7f0029e74de260f7458721b8edd1e618edc CI <[email protected]> 1654108479 +0200 commit: myfile4 | ||
b090d7f0029e74de260f7458721b8edd1e618edc 12d38e54cd419303587ba4613fb1194ec5c9d04f CI <[email protected]> 1654108479 +0200 reset: moving to HEAD~2 | ||
12d38e54cd419303587ba4613fb1194ec5c9d04f 0000000000000000000000000000000000000000 CI <[email protected]> 1654108482 +0200 Branch: renamed refs/heads/master to refs/heads/master-local | ||
0000000000000000000000000000000000000000 12d38e54cd419303587ba4613fb1194ec5c9d04f CI <[email protected]> 1654108482 +0200 Branch: renamed refs/heads/master to refs/heads/master-local | ||
12d38e54cd419303587ba4613fb1194ec5c9d04f b090d7f0029e74de260f7458721b8edd1e618edc CI <[email protected]> 1654108482 +0200 pull --no-edit --ff-only origin master: Fast-forward |
7 changes: 7 additions & 0 deletions
7
...fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/logs/refs/heads/master-local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
0000000000000000000000000000000000000000 3e5a250f3b6d2ea4ea93b3006aaceeb75bb8d0b6 CI <[email protected]> 1654108479 +0200 commit (initial): myfile1 | ||
3e5a250f3b6d2ea4ea93b3006aaceeb75bb8d0b6 12d38e54cd419303587ba4613fb1194ec5c9d04f CI <[email protected]> 1654108479 +0200 commit: myfile2 | ||
12d38e54cd419303587ba4613fb1194ec5c9d04f 72ee6cc86de71389b9c70e24c7d8c8837e7d3566 CI <[email protected]> 1654108479 +0200 commit: myfile3 | ||
72ee6cc86de71389b9c70e24c7d8c8837e7d3566 b090d7f0029e74de260f7458721b8edd1e618edc CI <[email protected]> 1654108479 +0200 commit: myfile4 | ||
b090d7f0029e74de260f7458721b8edd1e618edc 12d38e54cd419303587ba4613fb1194ec5c9d04f CI <[email protected]> 1654108479 +0200 reset: moving to HEAD~2 | ||
12d38e54cd419303587ba4613fb1194ec5c9d04f 12d38e54cd419303587ba4613fb1194ec5c9d04f CI <[email protected]> 1654108482 +0200 Branch: renamed refs/heads/master to refs/heads/master-local | ||
12d38e54cd419303587ba4613fb1194ec5c9d04f b090d7f0029e74de260f7458721b8edd1e618edc CI <[email protected]> 1654108482 +0200 pull --no-edit --ff-only origin master: Fast-forward |
1 change: 1 addition & 0 deletions
1
...chRemoteBranchWithNonmatchingName/expected/repo/.git_keep/logs/refs/remotes/origin/master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0000000000000000000000000000000000000000 b090d7f0029e74de260f7458721b8edd1e618edc CI <[email protected]> 1654108479 +0200 fetch origin: storing head |
Binary file added
BIN
+52 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/0e/6cf0a6b79e8d44e186d812a1f74b43d64fac52
Binary file not shown.
Binary file added
BIN
+149 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/12/d38e54cd419303587ba4613fb1194ec5c9d04f
Binary file not shown.
Binary file added
BIN
+21 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/18/0cf8328022becee9aaa2577a8f84ea2b9f3827
Binary file not shown.
Binary file added
BIN
+103 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/2b/173c861df433fa43ffad13f80c8b312c5c8bce
Binary file not shown.
Binary file added
BIN
+128 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/2f/6174050380438f14b16658a356e762435ca591
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...NonmatchingName/expected/repo/.git_keep/objects/3e/5a250f3b6d2ea4ea93b3006aaceeb75bb8d0b6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
x��A | ||
�0@Q�9�����I | ||
"BW=F�L��!R"����~�����r�*�J��d ��¬�D�j���E��<x����v�f�M�C?�^�^r�;�L9�pF��zL��ɝ}�)�2�,� |
2 changes: 2 additions & 0 deletions
2
...NonmatchingName/expected/repo/.git_keep/objects/72/ee6cc86de71389b9c70e24c7d8c8837e7d3566
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+21 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5
Binary file not shown.
Binary file added
BIN
+77 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/a7/341a59f0ddeef969e69fb6368266d22b0f2416
Binary file not shown.
Binary file added
BIN
+149 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/b0/90d7f0029e74de260f7458721b8edd1e618edc
Binary file not shown.
Binary file added
BIN
+21 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/d2/34c5e057fe32c676ea67e8cb38f4625ddaeb54
Binary file not shown.
Binary file added
BIN
+21 Bytes
...NonmatchingName/expected/repo/.git_keep/objects/df/6b0d2bcc76e6ec0fca20c227104a4f28bac41b
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...tion/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/refs/heads/master-local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
b090d7f0029e74de260f7458721b8edd1e618edc |
1 change: 1 addition & 0 deletions
1
...n/fetchRemoteBranchWithNonmatchingName/expected/repo/.git_keep/refs/remotes/origin/master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
b090d7f0029e74de260f7458721b8edd1e618edc |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/myfile1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test1 |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/myfile2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test2 |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/myfile3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test3 |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/expected/repo/myfile4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test4 |
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/recording.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"KeyEvents":[{"Timestamp":703,"Mod":0,"Key":256,"Ch":108},{"Timestamp":1151,"Mod":0,"Key":256,"Ch":82},{"Timestamp":1692,"Mod":0,"Key":13,"Ch":13},{"Timestamp":2183,"Mod":0,"Key":256,"Ch":45},{"Timestamp":2372,"Mod":0,"Key":256,"Ch":108},{"Timestamp":2498,"Mod":0,"Key":256,"Ch":111},{"Timestamp":2617,"Mod":0,"Key":256,"Ch":99},{"Timestamp":2663,"Mod":0,"Key":256,"Ch":97},{"Timestamp":2724,"Mod":0,"Key":256,"Ch":108},{"Timestamp":3196,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3837,"Mod":0,"Key":256,"Ch":102},{"Timestamp":4854,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":213,"Height":56}]} |
36 changes: 36 additions & 0 deletions
36
test/integration/fetchRemoteBranchWithNonmatchingName/setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
set -e | ||
|
||
cd $1 | ||
|
||
git init | ||
|
||
git config user.email "[email protected]" | ||
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 | ||
|
1 change: 1 addition & 0 deletions
1
test/integration/fetchRemoteBranchWithNonmatchingName/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "description": "allow unsetting the upstream of the current branch", "speed": 10 } |