Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Check the repository version #3249

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

Merged
merged 2 commits into from
Jun 24, 2015
Merged

Check the repository version #3249

merged 2 commits into from
Jun 24, 2015

Conversation

carlosmn
Copy link
Member

It hasn't mattered that we don't check for it on open, as it has been 0 since the first release of git, way back when; but times, they're a-changing and we will soon(ish) see version 1in the wild and we must take care that we don't open those and possibly break something (or just produce uncomprehensible results).

carlosmn added 2 commits June 23, 2015 20:43
git will assume the repository format version is 0 if the value is not
there. Do the same.
This is something we do on re-init but not when opening a
repository. This hasn't particularly mattered up to now as the version
has been 0 ever since the first release of git, but the times, they're
a-changing and we will soon see version 1 in the wild. We need to make
sure we don't open those.
ethomson added a commit that referenced this pull request Jun 24, 2015
@ethomson ethomson merged commit 8351abc into master Jun 24, 2015
git_config_free(config);
if (config &&
((error = load_config_data(repo, config)) < 0 ||
(error = load_workdir(repo, config, &parent))) < 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misplaced parenthesis here: see #3251

@carlosmn carlosmn deleted the cmn/repo-version-check branch June 26, 2015 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants