1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-06 08:59:31 +02:00

migrate fetchPrune integration test

This commit is contained in:
Jesse Duffield
2022-12-28 17:39:45 +11:00
parent 8a1c763942
commit 277ca706eb
34 changed files with 74 additions and 117 deletions

View File

@@ -1,10 +0,0 @@
disableStartupPopups: true
git:
autoFetch: false
gui:
theme:
activeBorderColor:
- green
- bold
SelectedRangeBgcolor:
- reverse

View File

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

View File

@@ -1,8 +0,0 @@
[core]
repositoryformatversion = 0
filemode = true
bare = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = /Users/jesseduffieldduffield/go/src/github.com/jesseduffield/lazygit/test/integration/fetchPrune/actual/./repo

View File

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

View File

@@ -1,7 +0,0 @@
# 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

@@ -1,3 +0,0 @@
x��A
�0@Q�9��ɤ�I��c�L��!R"����~����H|��*x�\����
�b��0�H

View File

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

View File

@@ -1 +0,0 @@
75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 branch 'master' of ../origin

View File

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

View File

@@ -1,21 +0,0 @@
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[user]
email = CI@example.com
name = CI
[fetch]
prune = true
[remote "origin"]
url = ../origin
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "other_branch"]
remote = origin
merge = refs/heads/other_branch

View File

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

View File

@@ -1,7 +0,0 @@
# 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

@@ -1,3 +0,0 @@
0000000000000000000000000000000000000000 75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 CI <CI@example.com> 1648352761 +1100 commit (initial): myfile1
75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 CI <CI@example.com> 1648352761 +1100 checkout: moving from master to other_branch
75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 CI <CI@example.com> 1648352761 +1100 checkout: moving from other_branch to master

View File

@@ -1 +0,0 @@
0000000000000000000000000000000000000000 75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 CI <CI@example.com> 1648352761 +1100 commit (initial): myfile1

View File

@@ -1 +0,0 @@
0000000000000000000000000000000000000000 75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 CI <CI@example.com> 1648352761 +1100 branch: Created from HEAD

View File

@@ -1 +0,0 @@
0000000000000000000000000000000000000000 75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27 CI <CI@example.com> 1648352761 +1100 fetch origin: storing head

View File

@@ -1,3 +0,0 @@
x��A
�0@Q�9��ɤ�I��c�L��!R"����~����H|��*x�\����
�b��0�H

View File

@@ -1 +0,0 @@
# pack-refs with: peeled fully-peeled sorted

View File

@@ -1 +0,0 @@
75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27

View File

@@ -1 +0,0 @@
75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27

View File

@@ -1 +0,0 @@
75f37fc5ae7e9967e9833b66beb2c9ee2f9f6c27

View File

@@ -1 +0,0 @@
test1

View File

@@ -1 +0,0 @@
{"KeyEvents":[{"Timestamp":608,"Mod":0,"Key":256,"Ch":102},{"Timestamp":1568,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}

View File

@@ -1,34 +0,0 @@
#!/bin/sh
set -e
cd $1
git init
git config user.email "CI@example.com"
git config user.name "CI"
# we're setting this to ensure that it's honoured by the fetch command
git config fetch.prune true
echo test1 > myfile1
git add .
git commit -am "myfile1"
git checkout -b other_branch
git checkout master
cd ..
git clone --bare ./repo origin
cd repo
git remote add origin ../origin
git fetch origin
git branch --set-upstream-to=origin/master master
git branch --set-upstream-to=origin/other_branch other_branch
# unbenownst to our test repo we're removing the branch on the remote, so upon
# fetching with prune: true we expect git to realise the remote branch is gone
git -C ../origin branch -d other_branch

View File

@@ -1,4 +0,0 @@
{
"description": "fetch from the remote with the 'prune' option set in the git config. Note this has a false positive until we find a way to show ls-remote origin in all tests when creating snapshots.",
"speed": 10
}