all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dmitry@gutov.dev>
To: Bob Rogers <rogers@rgrjr.com>, 65315-done@debbugs.gnu.org
Subject: bug#65315: 30.0.50; vc-dir fails with Git < 2.7.0
Date: Wed, 16 Aug 2023 04:33:04 +0300	[thread overview]
Message-ID: <4f3914ec-679e-d16f-4938-997ac6392fad@gutov.dev> (raw)
In-Reply-To: <25819.51571.336510.375273@orion.rgrjr.com>

Version: 30.1

On 15/08/2023 21:52, Bob Rogers wrote:
>     1.  On a system with a version of Git older than 2.7.0, navigate to a
> git-controlled directory and invoke "emacs -Q".
> 
>     2.  With this as the default directory, invoke vc-dir.  This fails
> with the error "vc-do-command: Failed (status 129): git --no-pager
> remote get-url origin ."
> 
>     This is because the "get-url" subcommand of "git remote", used by
> vc-git-repository-url, was added in 2.7.0 [1].  The attached patch
> against master rev 1db7e8eba961e88181879213dd5374ad9e87ac76 uses "git
> config" in a way that works in both old and new systems (tested with git
> 2.1.2 and git 2.35.3).

Thanks! Pushed to master.

>     Of course, supporting 7+-year-old versions of git is probably not a
> high priority, so I won't be too disappointed if this fix is rejected.
> On the other hand, it's a small change, and having vc-dir fail on any
> system, especially when using Git, puts a big damper on being able to
> use Emacs to hack on things in older systems, so I think it's worth
> having.

I'm not a fan of spending too much time on older versions myself, but 
the patch is indeed small, and we're still making allowances for 
versions older than that still.

Speaking of older systems, though, I would hope they have similarly old 
repositories with suitably old Emacs versions (or, if you build from 
source, there is a respective tag in the repo). We do have to drop 
compatibilities when stuff is old enough.





  reply	other threads:[~2023-08-16  1:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15 18:52 bug#65315: 30.0.50; vc-dir fails with Git < 2.7.0 Bob Rogers
2023-08-16  1:33 ` Dmitry Gutov [this message]
2023-08-16  1:51   ` Bob Rogers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f3914ec-679e-d16f-4938-997ac6392fad@gutov.dev \
    --to=dmitry@gutov.dev \
    --cc=65315-done@debbugs.gnu.org \
    --cc=rogers@rgrjr.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.