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

heroku 6.12.3 #15318

Merged
merged 1 commit into from Jul 6, 2017
Merged

heroku 6.12.3 #15318

merged 1 commit into from Jul 6, 2017

Conversation

jdx
Copy link
Contributor

@jdx jdx commented Jul 5, 2017

Created with brew bump-formula-pr.

@ilovezfs
Copy link
Contributor

ilovezfs commented Jul 6, 2017

@dickeyxxx thanks! By the way, you may want to start using 8 digit hashes for these, instead of 7, since that is the length Git chooses for your repo size now.

https://github.com/heroku/cli/commit/fca882c43e2570f79614bbb5fcb863bb2a5f69a9.patch

Note index d046afba..103e0400 100644

@jdx
Copy link
Contributor Author

jdx commented Jul 6, 2017

that might be github doing that, we run https://github.com/heroku/cli-engine/blob/master/bin/version#L2 so we're not specifying the length.

BTW we're still discussing the build stuff, hope to reach out soon with that but I've got a few things going on at the moment.

@ilovezfs
Copy link
Contributor

ilovezfs commented Jul 6, 2017

BTW we're still discussing the updating stuff, hope to reach out soon with that but I've got a few things going on at the moment.

Excellent!

that might be github doing that

It's actually just caused by Git >= 2.11.0 which uses a dynamic length instead of 7 for the short hashes.

See https://github.com/blog/2288-git-2-11-has-been-released

(We had some issues related to this recently #13792)

Luckily there's a new GitHub feature (?full_index=1 equivalent to Git's --full-index) that lets you get the full index instead now so that it's not variable length, e.g.

https://github.com/heroku/cli/commit/fca882c43e2570f79614bbb5fcb863bb2a5f69a9.patch?full_index=1

index d046afba868520e3476e22928df8c7e2984e754c..103e04003e2aa9a88b2fceef1743c0ac15582304 100644

@ilovezfs
Copy link
Contributor

ilovezfs commented Jul 6, 2017

bash-4.4$ cd $(brew --repo homebrew/core)
bash-4.4$ git rev-parse --short HEAD
41e6a4bbcc
bash-4.4$

(So Homebrew Core https://github.com/Homebrew/homebrew-core.git has a variable short hash length of 10).

So I think https://github.com/heroku/cli-engine/blob/master/bin/version#L2 is correct but you must be using an older Git in your backend that still hard codes length 7 instead of the dynamic length.

@jdx
Copy link
Contributor Author

jdx commented Jul 6, 2017

hrm. I'm on git 2.13.2 and it's sending 7 digit hashes. The point may be moot though (see my next PR)

@ilovezfs
Copy link
Contributor

ilovezfs commented Jul 6, 2017

Yeah, locally I get 7 for your repo

Josephs-MacBook-Pro:cli-engine joe$ git rev-parse --short HEAD
ccb0289

The backend GitHub repo for your repository must be a bit larger than the user-facing one. Interesting.

@ilovezfs ilovezfs merged commit 0c6eb88 into Homebrew:master Jul 6, 2017
@ilovezfs
Copy link
Contributor

ilovezfs commented Jul 6, 2017

Thanks for the upgrade! Merged!

@jdx jdx deleted the heroku-6.12.3 branch July 6, 2017 15:37
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants