git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: upgrading GIT from version 1.7.0.4 to 1.7.6.1.

From
Jeff King <peff@peff.net>
Date
Sep 19, 2011, 22:44 UTC
Message-ID
<20110919224449.GC4056@sigill.intra.peff.net>
In-Reply-To
<7vwrd48bq8.fsf@alter.siamese.dyndns.org>
On Mon, Sep 19, 2011 at 02:26:55PM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > [2] I suspect a similar thing happened with turning on packed refs
> >     (around the v1.4.4 era?), but I didn't dig around for details.
> 
> Also when bisecting down to really ancient versions of git, you may get
> complaints from the configuration reader. E.g.
> 
>     $ rungit v1.0.0 ls-files
>     fatal: bad config file line 78 in .git/config
>     $ sed -n 78p .git/config
>     [remote "git-gui"]

Ugh, yeah. There are similar problems with some specific config options (one I run into a lot these days is that "pager.foo" used to complain if the value was non-boolean, but now you can put in an arbitrary command). But those only bite you if you start using the new config options (which you obviously are not doing until after you upgrade).

But your example will bite anyone because git generates remote config like that by default.

Anyway, most of that is only applicable if you are crossing several major version boundaries, or are using ancient versions of git. I'm pretty sure that v1.7.0.x -> v1.7.6.x is pretty safe.

-Peff
Previous: Junio C HamanoNext: Jakub Narebski
Message 6 of 7 in “upgrading GIT from version 1.7.0.4 to 1.7.6.1.”
  1. MikaëlSep 19, 2011
  2. Sverre RabbelierSep 19, 2011
  3. Andreas EricssonSep 19, 2011
  4. Jeff KingSep 19, 2011
  5. Junio C HamanoSep 19, 2011
  6. Jeff KingSep 19, 2011
  7. Jakub NarebskiSep 19, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.