mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-27 22:38:09 +02:00
use cached git config
This commit is contained in:
@@ -0,0 +1 @@
|
||||
myfile3
|
||||
@@ -0,0 +1 @@
|
||||
d0d3bfe09c1a5a9631f3041a184d6b9c6d927c83 branch 'master' of ../actual_remote
|
||||
1
test/integration/pushFollowTags/expected/.git_keep/HEAD
Normal file
1
test/integration/pushFollowTags/expected/.git_keep/HEAD
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
18
test/integration/pushFollowTags/expected/.git_keep/config
Normal file
18
test/integration/pushFollowTags/expected/.git_keep/config
Normal file
@@ -0,0 +1,18 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
||||
[user]
|
||||
email = CI@example.com
|
||||
name = CI
|
||||
[remote "origin"]
|
||||
url = ../actual_remote
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||
[branch "master"]
|
||||
remote = origin
|
||||
merge = refs/heads/master
|
||||
[push]
|
||||
followTags = true
|
||||
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
BIN
test/integration/pushFollowTags/expected/.git_keep/index
Normal file
BIN
test/integration/pushFollowTags/expected/.git_keep/index
Normal file
Binary file not shown.
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 f27af92910b10e6ddf592fae975337355579464b CI <CI@example.com> 1634944096 +1100 commit (initial): myfile1
|
||||
f27af92910b10e6ddf592fae975337355579464b d0d3bfe09c1a5a9631f3041a184d6b9c6d927c83 CI <CI@example.com> 1634944096 +1100 commit: myfile2
|
||||
d0d3bfe09c1a5a9631f3041a184d6b9c6d927c83 aea6b2960cc3e7a2453ce3490ca09d090d7ce223 CI <CI@example.com> 1634944096 +1100 commit: myfile3
|
||||
@@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 f27af92910b10e6ddf592fae975337355579464b CI <CI@example.com> 1634944096 +1100 commit (initial): myfile1
|
||||
f27af92910b10e6ddf592fae975337355579464b d0d3bfe09c1a5a9631f3041a184d6b9c6d927c83 CI <CI@example.com> 1634944096 +1100 commit: myfile2
|
||||
d0d3bfe09c1a5a9631f3041a184d6b9c6d927c83 aea6b2960cc3e7a2453ce3490ca09d090d7ce223 CI <CI@example.com> 1634944096 +1100 commit: myfile3
|
||||
@@ -0,0 +1,2 @@
|
||||
0000000000000000000000000000000000000000 d0d3bfe09c1a5a9631f3041a184d6b9c6d927c83 CI <CI@example.com> 1634944096 +1100 fetch origin: storing head
|
||||
d0d3bfe09c1a5a9631f3041a184d6b9c6d927c83 aea6b2960cc3e7a2453ce3490ca09d090d7ce223 CI <CI@example.com> 1634944097 +1100 update by push
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
x��A
|
||||
�0@Q�9E��d�����#if���R"����~��Okks��x껈�) ���jQ&b-�ꉪ�ũG ��]^ݪOY�3�N�V��5�B
|
||||
1��HXL~����a��a|�'�m�˴��
|
||||
Ȉ�ɞ�3G=����M�꼈7?�S9�
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
x��A
|
||||
�0@Ѯs��ʌN�J\y��L���")���#t�y�S5[˥���*�`�e�3���쩋T^���%�{�⧽���i����-U{Iρ���ѝ��4��;��uSr3m,�
|
||||
@@ -0,0 +1 @@
|
||||
aea6b2960cc3e7a2453ce3490ca09d090d7ce223
|
||||
@@ -0,0 +1 @@
|
||||
aea6b2960cc3e7a2453ce3490ca09d090d7ce223
|
||||
@@ -0,0 +1 @@
|
||||
3410e6811881ccede9ff762c875f9b99a3e6eaef
|
||||
1
test/integration/pushFollowTags/expected/myfile1
Normal file
1
test/integration/pushFollowTags/expected/myfile1
Normal file
@@ -0,0 +1 @@
|
||||
test1
|
||||
1
test/integration/pushFollowTags/expected/myfile2
Normal file
1
test/integration/pushFollowTags/expected/myfile2
Normal file
@@ -0,0 +1 @@
|
||||
test2
|
||||
1
test/integration/pushFollowTags/expected/myfile3
Normal file
1
test/integration/pushFollowTags/expected/myfile3
Normal file
@@ -0,0 +1 @@
|
||||
test3
|
||||
1
test/integration/pushFollowTags/expected_remote/HEAD
Normal file
1
test/integration/pushFollowTags/expected_remote/HEAD
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
8
test/integration/pushFollowTags/expected_remote/config
Normal file
8
test/integration/pushFollowTags/expected_remote/config
Normal file
@@ -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/pushFollowTags/./actual
|
||||
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
@@ -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
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
x��A
|
||||
�0@Q�9E��d�����#if���R"����~��Okks��x껈�) ���jQ&b-�ꉪ�ũG ��]^ݪOY�3�N�V��5�B
|
||||
1��HXL~����a��a|�'�m�˴��
|
||||
Ȉ�ɞ�3G=����M�꼈7?�S9�
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
x��A
|
||||
�0@Ѯs��ʌN�J\y��L���")���#t�y�S5[˥���*�`�e�3���쩋T^���%�{�⧽���i����-U{Iρ���ѝ��4��;��uSr3m,�
|
||||
@@ -0,0 +1,2 @@
|
||||
# pack-refs with: peeled fully-peeled sorted
|
||||
d0d3bfe09c1a5a9631f3041a184d6b9c6d927c83 refs/heads/master
|
||||
@@ -0,0 +1 @@
|
||||
aea6b2960cc3e7a2453ce3490ca09d090d7ce223
|
||||
@@ -0,0 +1 @@
|
||||
3410e6811881ccede9ff762c875f9b99a3e6eaef
|
||||
1
test/integration/pushFollowTags/recording.json
Normal file
1
test/integration/pushFollowTags/recording.json
Normal file
@@ -0,0 +1 @@
|
||||
{"KeyEvents":[{"Timestamp":682,"Mod":0,"Key":256,"Ch":80},{"Timestamp":1641,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
|
||||
32
test/integration/pushFollowTags/setup.sh
Normal file
32
test/integration/pushFollowTags/setup.sh
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
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"
|
||||
|
||||
cd ..
|
||||
git clone --bare ./actual actual_remote
|
||||
|
||||
cd actual
|
||||
|
||||
echo test3 > myfile3
|
||||
git add .
|
||||
git commit -am "myfile3"
|
||||
|
||||
git remote add origin ../actual_remote
|
||||
git fetch origin
|
||||
git branch --set-upstream-to=origin/master master
|
||||
git config push.followTags true
|
||||
git tag -a v1.0 -m "my version 1.0"
|
||||
1
test/integration/pushFollowTags/test.json
Normal file
1
test/integration/pushFollowTags/test.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "description": "push changes to the remote, when --follow-tags is configured", "speed": 10 }
|
||||
@@ -0,0 +1 @@
|
||||
myfile3
|
||||
@@ -0,0 +1 @@
|
||||
8f99b05bf3462e1a797335475bff5fabe3ae9ec5 branch 'master' of ../actual_remote
|
||||
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
16
test/integration/pushNoFollowTags/expected/.git_keep/config
Normal file
16
test/integration/pushNoFollowTags/expected/.git_keep/config
Normal file
@@ -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 = ../actual_remote
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||
[branch "master"]
|
||||
remote = origin
|
||||
merge = refs/heads/master
|
||||
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
BIN
test/integration/pushNoFollowTags/expected/.git_keep/index
Normal file
BIN
test/integration/pushNoFollowTags/expected/.git_keep/index
Normal file
Binary file not shown.
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 fb20b9e96648c61699f9faf3a4383340fefd5f91 CI <CI@example.com> 1634944114 +1100 commit (initial): myfile1
|
||||
fb20b9e96648c61699f9faf3a4383340fefd5f91 8f99b05bf3462e1a797335475bff5fabe3ae9ec5 CI <CI@example.com> 1634944114 +1100 commit: myfile2
|
||||
8f99b05bf3462e1a797335475bff5fabe3ae9ec5 03009ca2af4be2a9bb49206974ce9c97eaa2da23 CI <CI@example.com> 1634944114 +1100 commit: myfile3
|
||||
@@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 fb20b9e96648c61699f9faf3a4383340fefd5f91 CI <CI@example.com> 1634944114 +1100 commit (initial): myfile1
|
||||
fb20b9e96648c61699f9faf3a4383340fefd5f91 8f99b05bf3462e1a797335475bff5fabe3ae9ec5 CI <CI@example.com> 1634944114 +1100 commit: myfile2
|
||||
8f99b05bf3462e1a797335475bff5fabe3ae9ec5 03009ca2af4be2a9bb49206974ce9c97eaa2da23 CI <CI@example.com> 1634944114 +1100 commit: myfile3
|
||||
@@ -0,0 +1,2 @@
|
||||
0000000000000000000000000000000000000000 8f99b05bf3462e1a797335475bff5fabe3ae9ec5 CI <CI@example.com> 1634944115 +1100 fetch origin: storing head
|
||||
8f99b05bf3462e1a797335475bff5fabe3ae9ec5 03009ca2af4be2a9bb49206974ce9c97eaa2da23 CI <CI@example.com> 1634944115 +1100 update by push
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
x��A
|
||||
�0@Q�9���$ӱ"BW=F��`���D���#���ş�Z�(tj�*�k$L��/EՄEY,s�>0���@�nK��X>�
|
||||
3�#��X��(�1�7�ҙ�K��\wF�
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
x��A
|
||||
�0Fa�9���ߎ�D��z�4�`�C�D���#�}|�R5[���vU�*��(�0j�̊ 9��(/�g�ӵs�ݞu�i��4?����%U����`:���rg߲n
|
||||
�0�,�
|
||||
@@ -0,0 +1 @@
|
||||
03009ca2af4be2a9bb49206974ce9c97eaa2da23
|
||||
@@ -0,0 +1 @@
|
||||
03009ca2af4be2a9bb49206974ce9c97eaa2da23
|
||||
@@ -0,0 +1 @@
|
||||
e19bd88e6b3a0d7e4ffc1de39b34d5a312fb9b77
|
||||
1
test/integration/pushNoFollowTags/expected/myfile1
Normal file
1
test/integration/pushNoFollowTags/expected/myfile1
Normal file
@@ -0,0 +1 @@
|
||||
test1
|
||||
1
test/integration/pushNoFollowTags/expected/myfile2
Normal file
1
test/integration/pushNoFollowTags/expected/myfile2
Normal file
@@ -0,0 +1 @@
|
||||
test2
|
||||
1
test/integration/pushNoFollowTags/expected/myfile3
Normal file
1
test/integration/pushNoFollowTags/expected/myfile3
Normal file
@@ -0,0 +1 @@
|
||||
test3
|
||||
1
test/integration/pushNoFollowTags/expected_remote/HEAD
Normal file
1
test/integration/pushNoFollowTags/expected_remote/HEAD
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
8
test/integration/pushNoFollowTags/expected_remote/config
Normal file
8
test/integration/pushNoFollowTags/expected_remote/config
Normal file
@@ -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/pushNoFollowTags/./actual
|
||||
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
@@ -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
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
x��A
|
||||
�0@Q�9���$ӱ"BW=F��`���D���#���ş�Z�(tj�*�k$L��/EՄEY,s�>0���@�nK��X>�
|
||||
3�#��X��(�1�7�ҙ�K��\wF�
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
x��A
|
||||
�0Fa�9���ߎ�D��z�4�`�C�D���#�}|�R5[���vU�*��(�0j�̊ 9��(/�g�ӵs�ݞu�i��4?����%U����`:���rg߲n
|
||||
�0�,�
|
||||
@@ -0,0 +1,2 @@
|
||||
# pack-refs with: peeled fully-peeled sorted
|
||||
8f99b05bf3462e1a797335475bff5fabe3ae9ec5 refs/heads/master
|
||||
@@ -0,0 +1 @@
|
||||
03009ca2af4be2a9bb49206974ce9c97eaa2da23
|
||||
1
test/integration/pushNoFollowTags/recording.json
Normal file
1
test/integration/pushNoFollowTags/recording.json
Normal file
@@ -0,0 +1 @@
|
||||
{"KeyEvents":[{"Timestamp":636,"Mod":0,"Key":256,"Ch":80},{"Timestamp":1563,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
|
||||
31
test/integration/pushNoFollowTags/setup.sh
Normal file
31
test/integration/pushNoFollowTags/setup.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
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"
|
||||
|
||||
cd ..
|
||||
git clone --bare ./actual actual_remote
|
||||
|
||||
cd actual
|
||||
|
||||
echo test3 > myfile3
|
||||
git add .
|
||||
git commit -am "myfile3"
|
||||
|
||||
git remote add origin ../actual_remote
|
||||
git fetch origin
|
||||
git branch --set-upstream-to=origin/master master
|
||||
git tag -a v1.0 -m "my version 1.0"
|
||||
1
test/integration/pushNoFollowTags/test.json
Normal file
1
test/integration/pushNoFollowTags/test.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "description": "push changes to the remote, when --follow-tags is not configured", "speed": 10 }
|
||||
@@ -0,0 +1 @@
|
||||
myfile2
|
||||
1
test/integration/pushTag/expected/.git_keep/FETCH_HEAD
Normal file
1
test/integration/pushTag/expected/.git_keep/FETCH_HEAD
Normal file
@@ -0,0 +1 @@
|
||||
9639a47a7955a338919b090835305898ea516c66 branch 'master' of ../actual_remote
|
||||
1
test/integration/pushTag/expected/.git_keep/HEAD
Normal file
1
test/integration/pushTag/expected/.git_keep/HEAD
Normal file
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
16
test/integration/pushTag/expected/.git_keep/config
Normal file
16
test/integration/pushTag/expected/.git_keep/config
Normal file
@@ -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 = ../actual_remote
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||
[branch "master"]
|
||||
remote = origin
|
||||
merge = refs/heads/master
|
||||
1
test/integration/pushTag/expected/.git_keep/description
Normal file
1
test/integration/pushTag/expected/.git_keep/description
Normal file
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
BIN
test/integration/pushTag/expected/.git_keep/index
Normal file
BIN
test/integration/pushTag/expected/.git_keep/index
Normal file
Binary file not shown.
7
test/integration/pushTag/expected/.git_keep/info/exclude
Normal file
7
test/integration/pushTag/expected/.git_keep/info/exclude
Normal file
@@ -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
|
||||
2
test/integration/pushTag/expected/.git_keep/logs/HEAD
Normal file
2
test/integration/pushTag/expected/.git_keep/logs/HEAD
Normal file
@@ -0,0 +1,2 @@
|
||||
0000000000000000000000000000000000000000 905961711d3f0898c003c7e4da636a4c683f7934 CI <CI@example.com> 1634944441 +1100 commit (initial): myfile1
|
||||
905961711d3f0898c003c7e4da636a4c683f7934 9639a47a7955a338919b090835305898ea516c66 CI <CI@example.com> 1634944441 +1100 commit: myfile2
|
||||
@@ -0,0 +1,2 @@
|
||||
0000000000000000000000000000000000000000 905961711d3f0898c003c7e4da636a4c683f7934 CI <CI@example.com> 1634944441 +1100 commit (initial): myfile1
|
||||
905961711d3f0898c003c7e4da636a4c683f7934 9639a47a7955a338919b090835305898ea516c66 CI <CI@example.com> 1634944441 +1100 commit: myfile2
|
||||
@@ -0,0 +1 @@
|
||||
0000000000000000000000000000000000000000 9639a47a7955a338919b090835305898ea516c66 CI <CI@example.com> 1634944442 +1100 fetch origin: storing head
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user