Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu bionic has a too old git #52

Closed
gagbo opened this issue Sep 21, 2020 · 4 comments · Fixed by #54
Closed

Ubuntu bionic has a too old git #52

gagbo opened this issue Sep 21, 2020 · 4 comments · Fixed by #54
Labels

Comments

@gagbo
Copy link

gagbo commented Sep 21, 2020

Output of :PackerSync and :PackerUpdate includes this for all my packages :

 ✗ Failed to update bakpakin/fennel.vim: {
  data = {
    data = {
      data = {
        exit_code = 129,
        output = {
          data = {
            stderr = { "error: unknown option `show-current'\nusage: git branch [<options>] [-r | -a] [--merged | --no-merged]\n   or: git branch [<options>] [-l] [-f] <branch-name> [<start-point>]\n   or: git branch [<options>] [-r] (-d | -D) <branch-name>...\n   or: git branch [<options>] (-m | -M) [<old-branch>] <new-branch>\n   or: git branch [<options>] (-c | -C) [<old-branch>] <new-branch>\n   or: git branch [<options>] [-r | -a] [--points-at]\n   or: git branch [<options>] [-r | -a] [--format]\n\nGeneric options\n    -v, --verbose         show hash and subject, give twice for upstream branch\n    -q, --quiet           suppress informational messages\n    -t, --track           set up tracking mode (see git-pull(1))\n    -u, --set-upstream-to <upstream>\n                          change the upstream info\n    --unset-upstream      Unset the upstream info\n    --color[=<when>]      use colored output\n    -r, --remotes         act on remote-tracking branches\n    --contains <commit>   print only branches that contain the commit\n    --no-contains <commit>\n                          print only branches that don't contain the commit\n    --abbrev[=<n>]        use <n> digits to display SHA-1s\n\nSpecific git-branch actions:\n    -a, --all             list both remote-tracking and local branches\n    -d, --delete          delete fully merged branch\n    -D                    delete branch (even if not merged)\n    -m, --move            move/rename a branch and its reflog\n    -M                    move/rename a branch, even if target exists\n    -c, --copy            copy a branch and its reflog\n    -C                    copy a branch, even if target exists\n    --list                list branch names\n    -l, --create-reflog   create the branch's reflog\n    --edit-description    edit the description for the branch\n    -f, --force           force creation, move/rename, deletion\n    --merged <commit>     print only branches that are merged\n    --no-merged <commit>  print only branches that are not merged\n    --column[=<style>]    list branches in columns\n    --sort <key>          field name to sort on\n    --points-at <object>  print only branches of the object\n    -i, --ignore-case     sorting and filtering are case insensitive\n    --format <format>     format to use for the output" },
            stdout = {}
          },
          err = {
            stderr = {},
            stdout = {}
          }
        },
        signal = 0
      },
      msg = "Error checking current branch for bakpakin/fennel.vim: fb50175 "
    },
    msg = "Error pulling updates for bakpakin/fennel.vim: "
  },
  msg = "Error checking updated commit for bakpakin/fennel.vim: fb50175"
}

From navigating the manual page it looks like --show-current is only for 2.23+ and I have 2.17 currently on this machine

@wbthomason
Copy link
Owner

Ah, nice find! That's frustrating; Bionic is a LTS release, right?

I'll need to look into alternatives for show-current, or at least way to detect git version.

Of course, if we end up switching over to something like @bfredl's potential libgit2, then maybe this ceases to be a problem?

@gagbo
Copy link
Author

gagbo commented Sep 21, 2020

yeah Bionic is LTS, it's the codename for 18.04 and I think LTS are 5 year support ? So it would be maintained until 2023

@wbthomason
Copy link
Owner

@gagbo Could you please try git rev-parse --abbrev-ref HEAD in some git repo on your machine and let me know if it prints only your current branch?

@gagbo
Copy link
Author

gagbo commented Sep 22, 2020

It does work well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants