Murmele / Gittyup

Understand your Git history!
https://murmele.github.io/Gittyup
MIT License
1.37k stars 107 forks source link

"Unknown error" / "config value 'autoupdate.enable' was not found" when fetching or pulling #668

Open pbek opened 7 months ago

pbek commented 7 months ago

Thank you for your work on this great git tool!

When I try to fetch or pull from git repositories I've opened locally (e.g. I tried https://github.com/pbek/nixcfg or https://github.com/pbek/QOwnNotes/) I get errors like this on my new installation of Gittyup on Linux (NixOS):

[-] Fetch - origin
     Unable to fetch from 'origin' - Unknown error

[-] Fetch - origin
     Unable to fetch from 'origin' - config value 'autoupdate.enable' was not found

I haven't found an autoupdate setting in the setting file of Gittyup (or GitAhead, which I've never used).

pbek commented 7 months ago

I'm not able to pull or fetch from almost any git repository I tried...

pbek commented 7 months ago

When I try to push a commit to an (internal) repository, I got a Unable to push to 'origin' - object not found - no matching loose object for prefix (b936088). Pushing in the terminal or other tools did work...

pbek commented 7 months ago

I only found https://stackoverflow.com/questions/57877090/why-does-gitahead-give-this-error-on-fetch-pull...

Murmele commented 7 months ago

Thanks for reporting, I will have a look into it.

Did you use the Flatpak version?

pbek commented 7 months ago

Thanks for reporting, I will have a look into it.

Thank you!

Did you use the Flatpak version?

No, the Nix version under NixOS. Built by this: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/version-management/gittyup/default.nix

pbek commented 7 months ago

@thiagokokada, is this maybe a Nix specific issue?

Murmele commented 7 months ago

@pbek Thanks for the clarification. Can you try once the flatpak version. https://github.com/Murmele/Gittyup/releases You can try with the latest dev version and the latest stable version 1.3.0

pbek commented 7 months ago

I now tried com.github.Murmele.Gittyup (1.3.0) and got for example this error when fetching:

[-] Fetch - origin
     Unable to fetch from 'origin' - object not found - no matching loose object for prefix (5d9d3e2)
pbek commented 7 months ago

It got the same error with the latest dev version. I also got this error:

[-] Fetch - origin
     Unable to fetch from 'origin' - Unknown error
Murmele commented 7 months ago

Can you give me more information?

pbek commented 7 months ago

They are all ssh... E.g. git@github.com:pbek/QOwnNotes.git.

Thank you for looking into that! I wanted to find a viable FLOSS alternative to the commercial Smartgit, and Gittyup really looked promising, especially since I'm a Qt fanboy! 😅

pbek commented 7 months ago

My .git/config for QOwnNotes is:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = git@github.com:pbek/QOwnNotes.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[pull]
    rebase = true
[submodule "src/libraries/fakevim"]
    active = true
    url = https://github.com/pbek/FakeVim.git
[submodule "src/libraries/piwiktracker"]
    active = true
    url = https://github.com/pbek/qt-piwik-tracker.git
[submodule "src/libraries/qttoolbareditor"]
    active = true
    url = https://github.com/pbek/Qt-Toolbar-Editor.git
[submodule "src/libraries/qmarkdowntextedit"]
    active = true
    url = https://github.com/pbek/qmarkdowntextedit.git
[submodule "src/libraries/qtcsv"]
    active = true
    url = https://github.com/pbek/qtcsv.git
[submodule "src/libraries/qkeysequencewidget"]
    active = true
    url = https://github.com/pbek/qkeysequencewidget
[submodule "src/libraries/md4c"]
    active = true
    url = https://github.com/qownnotes/md4c
[submodule "src/libraries/qhotkey"]
    active = true
    url = https://github.com/qownnotes/QHotkey.git
[taggrouping]
    groups = dev:refs/tags/dev-macosx-b(?<name>.*)
    singles =
[branch "main"]
    remote = origin
    merge = refs/heads/main
[branch "release"]
    remote = origin
    merge = refs/heads/release
[branch "wolf/translation-dir-patch"]
    remote = https://github.com/charliewolf/QOwnNotes.git
    pushRemote = https://github.com/charliewolf/QOwnNotes.git
    merge = refs/heads/wolf/translation-dir-patch
pbek commented 7 months ago

My gitconfig is like that:

[user]
  name = Patrizio Bekerle
  email = <my email>
  signingkey = <my key>
[gc]
  autoDetach = false
[url "ssh://git@github.com/"]
  insteadOf = https://github.com/
[url "ssh://git@gitlab.com/"]
  insteadOf = https://gitlab.com/
[url "ssh://git@bitbucket.org/"]
  insteadOf = https://bitbucket.org/
[url "ssh://git@gitlab.tugraz.at/"]
  insteadOf = https://gitlab.tugraz.at/
[core]
  excludesfile = /home/omega/.gitignore
[commit]
  gpgsign = false
[gpg]
  program = gpg
[pull]
  rebase = false
[gui]
  pruneduringfetch = true
[smartgit "submodule"]
  fetchalways = false
  update = true
  initializenew = true
[push]
  recurseSubmodules = check
[init]
  defaultBranch = main
pbek commented 7 months ago

Are there some Gittyup logs or log output I could provide?

pbek commented 7 months ago

Could it have something to do with my ECDSA-SK ssh key? Sometimes pulls are working...