Azure / azure-functions-docker

This repo contains the base Docker images for working with azure functions
MIT License
266 stars 118 forks source link

Core Tools image: update git version and default branch to main #415

Open anthonychu opened 3 years ago

anthonychu commented 3 years ago

Currently, git 2.20 is installed, which doesn't support setting the default branch to main.

This way, when customers initialize a functions project, they are created with a main branch instead of master.

/cc @TsuyoshiUshio

TsuyoshiUshio commented 3 years ago

I tested locally. If we want to update, We might probably build from source. However, it is not complex like following. I tested with ppa. However, it doesn't work.

https://www.digitalocean.com/community/tutorials/how-to-install-git-on-debian-10

Once debian support the 2.28+ then we can rollback the change. We are building CoreTools with Nightly build. The Dockerfile install the latest git. However, Debian latest looks 2.20.

If it is important for devcontainer experience, I'd happy to create a pr. What do you think? @anthonych