1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-01 22:52:01 +02:00

add tests for dealing with remotes

This commit is contained in:
Jesse Duffield
2021-10-22 20:18:40 +11:00
parent 6388af70ac
commit 2008c39516
663 changed files with 1663 additions and 72 deletions

View File

@@ -0,0 +1 @@
dc7117cc68b23798cabb2c388a45036da33c2f10 not-for-merge branch 'master' of ../actual_remote

View File

@@ -0,0 +1 @@
ref: refs/heads/test

View 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/*
[push]
default = current
[branch "test"]
remote = origin
merge = refs/heads/test

View File

@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View 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

View File

@@ -0,0 +1,5 @@
0000000000000000000000000000000000000000 d0e2575d4cdf78f6845db57439c7b526d02dbc7d CI <CI@example.com> 1634897757 +1100 commit (initial): myfile1
d0e2575d4cdf78f6845db57439c7b526d02dbc7d dc7117cc68b23798cabb2c388a45036da33c2f10 CI <CI@example.com> 1634897757 +1100 commit: myfile2
dc7117cc68b23798cabb2c388a45036da33c2f10 6552acdbb2da7b153b78bbd9f6a564a54fce1ed9 CI <CI@example.com> 1634897757 +1100 commit: myfile3
6552acdbb2da7b153b78bbd9f6a564a54fce1ed9 2d0011f18dcd00e21fd13ede01792048ccd09e85 CI <CI@example.com> 1634897757 +1100 commit: myfile4
2d0011f18dcd00e21fd13ede01792048ccd09e85 2d0011f18dcd00e21fd13ede01792048ccd09e85 CI <CI@example.com> 1634897760 +1100 checkout: moving from master to test

View File

@@ -0,0 +1,4 @@
0000000000000000000000000000000000000000 d0e2575d4cdf78f6845db57439c7b526d02dbc7d CI <CI@example.com> 1634897757 +1100 commit (initial): myfile1
d0e2575d4cdf78f6845db57439c7b526d02dbc7d dc7117cc68b23798cabb2c388a45036da33c2f10 CI <CI@example.com> 1634897757 +1100 commit: myfile2
dc7117cc68b23798cabb2c388a45036da33c2f10 6552acdbb2da7b153b78bbd9f6a564a54fce1ed9 CI <CI@example.com> 1634897757 +1100 commit: myfile3
6552acdbb2da7b153b78bbd9f6a564a54fce1ed9 2d0011f18dcd00e21fd13ede01792048ccd09e85 CI <CI@example.com> 1634897757 +1100 commit: myfile4

View File

@@ -0,0 +1 @@
0000000000000000000000000000000000000000 2d0011f18dcd00e21fd13ede01792048ccd09e85 CI <CI@example.com> 1634897760 +1100 branch: Created from master

View File

@@ -0,0 +1 @@
0000000000000000000000000000000000000000 dc7117cc68b23798cabb2c388a45036da33c2f10 CI <CI@example.com> 1634897757 +1100 fetch origin: storing head

View File

@@ -0,0 +1 @@
0000000000000000000000000000000000000000 2d0011f18dcd00e21fd13ede01792048ccd09e85 CI <CI@example.com> 1634897761 +1100 update by push

View File

@@ -0,0 +1,2 @@
x��A
�0@Ѯs��JFǙ�\y��L������#t�y�S5[ �����S��5d"��9`�-�g��й�n�z�4�}�����ozK���SE�+���������ٷ����7,,�

View File

@@ -0,0 +1 @@
2d0011f18dcd00e21fd13ede01792048ccd09e85

View File

@@ -0,0 +1 @@
2d0011f18dcd00e21fd13ede01792048ccd09e85

View File

@@ -0,0 +1 @@
dc7117cc68b23798cabb2c388a45036da33c2f10

View File

@@ -0,0 +1 @@
2d0011f18dcd00e21fd13ede01792048ccd09e85

View File

@@ -0,0 +1 @@
test1

View File

@@ -0,0 +1 @@
test2

View File

@@ -0,0 +1 @@
test3

View File

@@ -0,0 +1 @@
test4

View File

@@ -0,0 +1 @@
ref: refs/heads/master

View 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/pushAndSetUpstreamDefault/./actual

View File

@@ -0,0 +1 @@
Unnamed repository; edit this file 'description' to name the repository.

View 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

View File

@@ -0,0 +1,2 @@
x��A
�0@Ѯs��JFǙ�\y��L������#t�y�S5[ �����S��5d"��9`�-�g��й�n�z�4�}�����ozK���SE�+���������ٷ����7,,�

View File

@@ -0,0 +1,2 @@
# pack-refs with: peeled fully-peeled sorted
dc7117cc68b23798cabb2c388a45036da33c2f10 refs/heads/master

View File

@@ -0,0 +1 @@
2d0011f18dcd00e21fd13ede01792048ccd09e85

View File

@@ -0,0 +1 @@
{"KeyEvents":[{"Timestamp":1523,"Mod":0,"Key":259,"Ch":0},{"Timestamp":1953,"Mod":0,"Key":256,"Ch":110},{"Timestamp":2224,"Mod":0,"Key":256,"Ch":116},{"Timestamp":2289,"Mod":0,"Key":256,"Ch":101},{"Timestamp":2432,"Mod":0,"Key":256,"Ch":115},{"Timestamp":2455,"Mod":0,"Key":256,"Ch":116},{"Timestamp":2633,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3369,"Mod":0,"Key":256,"Ch":80},{"Timestamp":4464,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}

View File

@@ -0,0 +1,33 @@
#!/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"
echo test4 > myfile4
git add .
git commit -am "myfile4"
git remote add origin ../actual_remote
git fetch origin
git config push.default current

View File

@@ -0,0 +1 @@
{ "description": "push changes to the remote, setting upstream automatically based on config", "speed": 10 }