Git version problem with Ubuntu 18.04
See original GitHub issueProblem
Because the images use ubuntu:18.04
, the git version is 2.17.1
, checkout@v3
throws this warning message:
The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH
This causes some problems with committing inside the self-hosted
runner, meaning you will get an error like this when you try to commit:
fatal: not a git repository (or any of the parent directories): .git
I don’t know if there’s a specific reason we use 18.04 but is it possible to bump the ubuntu version to 20.04 since it is LTS as well?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to install gitversion on Ubuntu 18.04.4?
The GitVersion doc on installation is somewhat blur for linux distros. Well, answering your question above i think I figured it out.
Read more >2 Ways to Install Git on Ubuntu 18.04, 20.04 and 22.04
The easiest way to check if Git is installed is to run the git –version command, which will display the current version of...
Read more >How To Install Git on Ubuntu 18.04 - DigitalOcean
Installing Git with Default Packages First, use the apt package management tools to update your local package index: sudo apt update.
Read more >GitVersion not working in Ubuntu 20.04 · Issue #2293 - GitHub
Description When the ubuntu-latest VM image switched to 20.04 we started getting the following error from GitVersion: System.
Read more >USN-5376-1: Git vulnerability | Ubuntu security notices
USN-5376-1 : Git vulnerability. 12 April 2022. Git could be made to run arbitrary commands in platforms with multiple users support.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Turns out
ubuntu-latest
is actuallyubuntu-20.04
, specifying justlinux
hangs, and all Ubuntu versions contain the latest git 2.36.1. I’ll open a PR to update to latest git on all images.great to hear, thank you.