Skip to content

Instantly share code, notes, and snippets.

@sesponda
Created July 2, 2024 06:07
Show Gist options
  • Save sesponda/11983c0cfbde01ac8374c719a3214404 to your computer and use it in GitHub Desktop.
Save sesponda/11983c0cfbde01ac8374c719a3214404 to your computer and use it in GitHub Desktop.

Versions:

git version 2.45.2

# lazygit --version                                                                                                                    04:03:58 PM
commit=, build date=, build source=unknown, version=0.42.0, os=linux, arch=amd64, git version=2.45.2

# sudo dnf install lazygit                                                                                                             04:04:19 PM
Last metadata expiration check: 2:16:11 ago on Tue 02 Jul 2024 13:48:41.
Package lazygit-0.42.0-1.fc40.x86_64 is already installed.
Dependencies resolved.

Logs:

Jul  2 16:01:20 |INFO| language: en-AU
Jul  2 16:01:20 |DEBU| RunCommand command="git --version"
Jul  2 16:01:20 |INFO| git --version (1.470588ms)
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --path-format=absolute --show-toplevel --absolute-git-dir --git-common-dir --show-superproject-working-tree"
Jul  2 16:01:20 |INFO| git rev-parse --path-format=absolute --show-toplevel --absolute-git-dir --git-common-dir --show-superproject-working-tree (2.567603ms)
Jul  2 16:01:20 |INFO| starting main loop
Jul  2 16:01:20 |INFO| Binary is not built with the buildBinary flag so we won't check for an update
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --is-bare-repository"
Jul  2 16:01:20 |DEBU| RunCommand command="git fetch --all --no-write-fetch-head"
Jul  2 16:01:20 |INFO| git rev-parse --is-bare-repository (1.278762ms)
Jul  2 16:01:20 |INFO| refreshing all scopes in async mode
Jul  2 16:01:20 |INFO| Refresh took 99.494µs
Jul  2 16:01:20 |DEBU| RunCommand command="git tag --list -n --sort=-creatordate"
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --abbrev-ref --verify HEAD"
Jul  2 16:01:20 |DEBU| RunCommand command="git stash list -z --pretty=%ct|%gs"
Jul  2 16:01:20 |DEBU| RunCommand command="git for-each-ref --sort=-committerdate --format=%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)%00%(push:track)%00%(subject)%00%(objectname)%00%(committerdate:unix) refs/heads"
Jul  2 16:01:20 |DEBU| RunCommand command="git status --untracked-files=no --porcelain -z"
Jul  2 16:01:20 |INFO| git tag --list -n --sort=-creatordate (1.957999ms)
Jul  2 16:01:20 |INFO| git rev-parse --abbrev-ref --verify HEAD (1.848362ms)
Jul  2 16:01:20 |INFO| postRefreshUpdate for tags took 12.922µs
Jul  2 16:01:20 |INFO| git stash list -z --pretty=%ct|%gs (1.653012ms)
Jul  2 16:01:20 |INFO| postRefreshUpdate for stash took 9.165µs
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --symbolic-full-name main@{u}"
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --symbolic-full-name master@{u}"
Jul  2 16:01:20 |INFO| git for-each-ref --sort=-committerdate --format=%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)%00%(push:track)%00%(subject)%00%(objectname)%00%(committerdate:unix) refs/heads (2.809329ms)
Jul  2 16:01:20 |DEBU| RunCommand command="git worktree list --porcelain"
Jul  2 16:01:20 |DEBU| Error getting git config value for key: rebase.updateRefs. Error: the key is not found for [git config --get --null rebase.updateRefs]
Jul  2 16:01:20 |ERRO| fatal: no such branch: 'master'
 command="git rev-parse --symbolic-full-name master@{u}"
Jul  2 16:01:20 |INFO| git rev-parse --symbolic-full-name master@{u} (1.730856ms)
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --verify --quiet refs/remotes/origin/master"
Jul  2 16:01:20 |ERRO| fatal: upstream branch 'refs/heads/main' not stored as a remote-tracking branch
 command="git rev-parse --symbolic-full-name main@{u}"
Jul  2 16:01:20 |INFO| git rev-parse --symbolic-full-name main@{u} (1.892938ms)
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --verify --quiet refs/remotes/origin/main"
Jul  2 16:01:20 |INFO| git status --untracked-files=no --porcelain -z (3.264249ms)
Jul  2 16:01:20 |INFO| git worktree list --porcelain (1.730736ms)
Jul  2 16:01:20 |INFO| git -c log.showSignature=false log -g --abbrev=40 --format=%h%x00%ct%x00%gs%x00%p (3.94836ms)
Jul  2 16:01:20 |INFO| postRefreshUpdate for worktrees took 11.046µs
Jul  2 16:01:20 |INFO| postRefreshUpdate for localBranches took 189.273µs
Jul  2 16:01:20 |INFO| git for-each-ref --sort=refname --format=%(refname:short) refs/remotes (2.044402ms)
Jul  2 16:01:20 |ERRO| <no msg> command="git rev-parse --verify --quiet refs/remotes/origin/master"
Jul  2 16:01:20 |INFO| git rev-parse --verify --quiet refs/remotes/origin/master (1.731356ms)
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --verify --quiet refs/heads/master"
Jul  2 16:01:20 |ERRO| <no msg> command="git rev-parse --verify --quiet refs/remotes/origin/main"
Jul  2 16:01:20 |INFO| git rev-parse --verify --quiet refs/remotes/origin/main (1.682669ms)
Jul  2 16:01:20 |DEBU| RunCommand command="git rev-parse --verify --quiet refs/heads/main"
Jul  2 16:01:20 |INFO| postRefreshUpdate for reflogCommits took 616.274µs
Jul  2 16:01:20 |INFO| postRefreshUpdate for remotes took 144.487µs
Jul  2 16:01:20 |INFO| postRefreshUpdate for remoteBranches took 6.355µs
Jul  2 16:01:20 |DEBU| RunCommand command="git merge-base main main@{u}"
Jul  2 16:01:20 |INFO| git log HEAD --topo-order --oneline --pretty=format:%H%x00%at%x00%aN%x00%ae%x00%D%x00%p%x00%m%x00%s --abbrev=40 -300 --no-show-signature -- (4.52385ms)
Jul  2 16:01:20 |INFO| git rev-parse --verify --quiet refs/heads/main (1.61894ms)
Jul  2 16:01:20 |ERRO| <no msg> command="git rev-parse --verify --quiet refs/heads/master"
Jul  2 16:01:20 |INFO| git rev-parse --verify --quiet refs/heads/master (1.788499ms)
Jul  2 16:01:20 |DEBU| RunCommand command="git merge-base HEAD refs/heads/main"
Jul  2 16:01:20 |ERRO| fatal: upstream branch 'refs/heads/main' not stored as a remote-tracking branch
 command="git merge-base main main@{u}"
Jul  2 16:01:20 |INFO| git merge-base main main@{u} (1.950845ms)
Jul  2 16:01:20 |INFO| git merge-base HEAD refs/heads/main (1.506129ms)
Jul  2 16:01:20 |DEBU| using cache for key rebase.updateRefs
Jul  2 16:01:20 |INFO| postRefreshUpdate for commits took 2.879641ms
Jul  2 16:01:20 |DEBU| using cache for key rebase.updateRefs
Jul  2 16:01:20 |DEBU| RunCommand command="git for-each-ref --sort=-committerdate --format=%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)%00%(push:track)%00%(subject)%00%(objectname)%00%(committerdate:unix) refs/heads"
Jul  2 16:01:20 |INFO| git for-each-ref --sort=-committerdate --format=%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)%00%(push:track)%00%(subject)%00%(objectname)%00%(committerdate:unix) refs/heads (1.892828ms)
Jul  2 16:01:20 |INFO| postRefreshUpdate for localBranches took 69.516µs
Jul  2 16:01:20 |DEBU| using cache for key rebase.updateRefs
Jul  2 16:01:20 |INFO| postRefreshUpdate for submodules took 13.337µs
Jul  2 16:01:20 |INFO| postRefreshUpdate for files took 31.009µs
Jul  2 16:01:24 |INFO| git fetch --all --no-write-fetch-head (3.236905609s)
Jul  2 16:01:24 |INFO| refreshing the following scopes in async mode: branches,commits,remotes,tags
Jul  2 16:01:24 |INFO| Refresh took 109.467µs
Jul  2 16:01:24 |DEBU| RunCommand command="git tag --list -n --sort=-creatordate"
Jul  2 16:01:24 |DEBU| RunCommand command="git rev-parse --abbrev-ref --verify HEAD"
Jul  2 16:01:24 |INFO| git for-each-ref --sort=refname --format=%(refname:short) refs/remotes (1.83262ms)
Jul  2 16:01:24 |INFO| git rev-parse --abbrev-ref --verify HEAD (1.882415ms)
Jul  2 16:01:24 |INFO| postRefreshUpdate for remotes took 72.668µs
Jul  2 16:01:24 |INFO| postRefreshUpdate for remoteBranches took 7.343µs
Jul  2 16:01:24 |DEBU| RunCommand command="git merge-base main main@{u}"
Jul  2 16:01:24 |DEBU| RunCommand command="git merge-base HEAD refs/heads/main"
Jul  2 16:01:24 |INFO| git tag --list -n --sort=-creatordate (1.983578ms)
Jul  2 16:01:24 |INFO| postRefreshUpdate for tags took 30.922µs
Jul  2 16:01:24 |INFO| git -c log.showSignature=false log -g --abbrev=40 --format=%h%x00%ct%x00%gs%x00%p (2.733676ms)
Jul  2 16:01:24 |INFO| postRefreshUpdate for reflogCommits took 364.93µs
Jul  2 16:01:24 |DEBU| RunCommand command="git for-each-ref --sort=-committerdate --format=%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)%00%(push:track)%00%(subject)%00%(objectname)%00%(committerdate:unix) refs/heads"
Jul  2 16:01:24 |INFO| git merge-base HEAD refs/heads/main (2.408632ms)
Jul  2 16:01:24 |ERRO| fatal: upstream branch 'refs/heads/main' not stored as a remote-tracking branch
 command="git merge-base main main@{u}"
Jul  2 16:01:24 |INFO| git merge-base main main@{u} (2.684092ms)
Jul  2 16:01:24 |INFO| git log HEAD --topo-order --oneline --pretty=format:%H%x00%at%x00%aN%x00%ae%x00%D%x00%p%x00%m%x00%s --abbrev=40 -300 --no-show-signature -- (2.981722ms)
Jul  2 16:01:24 |INFO| git for-each-ref --sort=-committerdate --format=%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)%00%(push:track)%00%(subject)%00%(objectname)%00%(committerdate:unix) refs/heads (1.948998ms)
Jul  2 16:01:24 |DEBU| using cache for key rebase.updateRefs
Jul  2 16:01:24 |INFO| postRefreshUpdate for localBranches took 60.569µs
Jul  2 16:01:24 |INFO| postRefreshUpdate for commits took 1.180087ms
Jul  2 16:01:24 |DEBU| using cache for key rebase.updateRefs
Jul  2 16:01:30 |INFO| refreshing the following scopes in sync mode: files
Jul  2 16:01:30 |DEBU| using cache for key status.showUntrackedFiles
Jul  2 16:01:30 |INFO| refreshed merge conflicts in 42.388µs
Jul  2 16:01:30 |DEBU| RunCommand command="git status --untracked-files=no --porcelain -z"
Jul  2 16:01:30 |INFO| git status --untracked-files=no --porcelain -z (4.137718ms)

Git config

[core]
	repositoryformatversion = 0
	filemode = true
	bare = true
[remote "origin"]
	url = git@github.com:{redacted}/{redacted}.git
[branch "main"]
	remote = origin
	merge = refs/heads/main

Git push returns "Everything up-to-date"

@sesponda
Copy link
Author

sesponda commented Jul 2, 2024

There is something broken I can't pinpoint:

git remote -v                                                                                                                04:26:24 PM
origin	git@github.com:redacted/redacted.git (fetch)
origin	git@github.com:redacted/redacted.git (push)

git fetch --all                                                                                                              04:26:37 PM
From github.com:redacted/redacted
 * branch            main       -> FETCH_HEAD

 git branch -a | cat                                                                                                           04:26:51 PM
* main

git remote show origin                                                                                                       04:26:58 PM
* remote origin
  Fetch URL: git@github.com:redacted/redacted.git
  Push  URL: git@github.com:redacted/redacted.git
  HEAD branch: main
  Local branch configured for 'git pull':
    main merges with remote main
  Local ref configured for 'git push':
    main pushes to main (up to date)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment