unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49570: 28.0.50; url-http proxy connection-wait
@ 2021-07-15  9:55 Madhu
  2021-07-15 14:47 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: Madhu @ 2021-07-15  9:55 UTC (permalink / raw)
  To: 49570

[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]


When accessing https://melpa.org (an nginx webserver) through a
http-proxy (by setting url-proxy-services, say to privoxy), url-http
hangs when parsing headers. apparently the connection is dropped with
emacs master. I'm on this commit on master

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.16.0, Xaw3d scroll bars) of 2021-06-15
 794ec934a76d0647a72b7be32e20dc5b95e5ec11

#ELISP> (setq url-proxy-services '(("http" . "localhost:8118") ("https" . "localhost:8118")))
ELISP> (url-retrieve-synchronously (url-generic-parse-url "https://melpa.org/"))
#<buffer  *http melpa.org:443*>

And the buffer looks like

#+BEGIN_EXAMPLE

Process melpa.org connection broken by remote peer
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Jul 2021 09:41:12 GMT
Content-Type: text/html; charset=utf-8
Last-Modified: Wed, 10 Feb 2021 23:56:44 GMT
Connection: close
Vary: Accept-Encoding
ETag: W/"602472bc-d92"
Strict-Transport-Security: max-age=15768000
Content-Encoding: gzip
#+END_EXAMPLE

The connection is broken and the "\nProcess HOST connection broken by
remote peer\n" line in the buffer means the spins without parsing the
header.


Now proxied requests are asynchronous.

If I (setf (url-asynchronous url) t) in lisp/url/url.el:
(url-retrieve-internal), as per the appended patch, then eventually
make-network-process gets called with a :nowait t, and the connection
pulls through.

But I'm not sure if this is the right thing or if the problem is
elsewhere as this problem doesn't happen on older emacs - say from
2020-10-15.

Do others see this problem?

[BTW I haven't seen paul eggert on the lists lately, any word if he is
still too busy for emacs?]



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: proxy connections non-blocking --]
[-- Type: text/x-diff, Size: 551 bytes --]

diff --git a/lisp/url/url.el b/lisp/url/url.el
index 00c5740cf8..e40a4ecc29 100644
--- a/lisp/url/url.el
+++ b/lisp/url/url.el
@@ -211,8 +211,9 @@ url-retrieve-internal
 	(buffer nil)
 	(asynch (url-scheme-get-property (url-type url) 'asynchronous-p)))
     (if url-using-proxy
-	(setq asynch t
-	      loader #'url-proxy))
+	(progn (setq asynch t
+	             loader #'url-proxy)
+               (setf (url-asynchronous url) t)))
     (if asynch
 	(let ((url-current-object url))
 	  (setq buffer (funcall loader url callback cbargs)))
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-15  9:55 bug#49570: 28.0.50; url-http proxy connection-wait Madhu
@ 2021-07-15 14:47 ` Lars Ingebrigtsen
  2021-07-19 15:42   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-15 14:47 UTC (permalink / raw)
  To: Madhu; +Cc: 49570

Madhu <enometh@meer.net> writes:

> When accessing https://melpa.org (an nginx webserver) through a
> http-proxy (by setting url-proxy-services, say to privoxy), url-http
> hangs when parsing headers. apparently the connection is dropped with
> emacs master. I'm on this commit on master
>
> GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
>  version 1.16.0, Xaw3d scroll bars) of 2021-06-15
>  794ec934a76d0647a72b7be32e20dc5b95e5ec11

Could you try updating the branch?  Mattias pushed a connection logic
fix a couple of days ago that may (or may not) change things in this
area.

> If I (setf (url-asynchronous url) t) in lisp/url/url.el:
> (url-retrieve-internal), as per the appended patch, then eventually
> make-network-process gets called with a :nowait t, and the connection
> pulls through.
>
> But I'm not sure if this is the right thing or if the problem is
> elsewhere as this problem doesn't happen on older emacs - say from
> 2020-10-15.

It'd be interesting if you could bisect to the commit that broke this.

> [BTW I haven't seen paul eggert on the lists lately, any word if he is
> still too busy for emacs?]

He was here just the other day.  :-)

> -	(setq asynch t
> -	      loader #'url-proxy))
> +	(progn (setq asynch t
> +	             loader #'url-proxy)
> +               (setf (url-asynchronous url) t)))

Hm...  Looking at the code, I think this patch looks correct.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-15 14:47 ` Lars Ingebrigtsen
@ 2021-07-19 15:42   ` Lars Ingebrigtsen
  2021-07-20  6:50     ` Madhu
  0 siblings, 1 reply; 18+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-19 15:42 UTC (permalink / raw)
  To: Madhu; +Cc: 49570

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> -	(setq asynch t
>> -	      loader #'url-proxy))
>> +	(progn (setq asynch t
>> +	             loader #'url-proxy)
>> +               (setf (url-asynchronous url) t)))
>
> Hm...  Looking at the code, I think this patch looks correct.

So I applied the patch to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-19 15:42   ` Lars Ingebrigtsen
@ 2021-07-20  6:50     ` Madhu
  2021-07-20 14:08       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Madhu @ 2021-07-20  6:50 UTC (permalink / raw)
  To: larsi; +Cc: 49570

*  Lars Ingebrigtsen <larsi@gnus.org> <87lf62l37y.fsf@gnus.org>
Wrote on Mon, 19 Jul 2021 17:42:41 +0200

> So I applied the patch to Emacs 28.

Thanks.  (I'm afraid I haven't found the time to bisect it, and
running native-comp is a disincentive to change HEAD (with debug it
takes 100s of GB) but maybe i can still try to bisect after I update
-- for curiosity's sake)





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-20  6:50     ` Madhu
@ 2021-07-20 14:08       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-07-20 14:20         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-07-20 14:08 UTC (permalink / raw)
  To: Madhu; +Cc: larsi, 49570

Madhu <enometh@meer.net> writes:

> *  Lars Ingebrigtsen <larsi@gnus.org> <87lf62l37y.fsf@gnus.org>
> Wrote on Mon, 19 Jul 2021 17:42:41 +0200
>
>> So I applied the patch to Emacs 28.
>
> Thanks.  (I'm afraid I haven't found the time to bisect it, and
> running native-comp is a disincentive to change HEAD (with debug it
> takes 100s of GB) but maybe i can still try to bisect after I update
> -- for curiosity's sake)

native-comp is merged into master since a while.

Actually I thought I removed feature/native-comp, is it still in place?

Regards

  Andrea





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-20 14:08       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-07-20 14:20         ` Lars Ingebrigtsen
  2021-07-20 15:13           ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-20 14:20 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: Madhu, 49570

Andrea Corallo <akrl@sdf.org> writes:

> Actually I thought I removed feature/native-comp, is it still in place?

I think it's gone from Savannah, but if I remember correctly, that
doesn't make the branch go away in other repos?  And indeed:

larsi@elva:~/src/emacs/trunk$ git branch -a | grep native
  remotes/origin/feature/native-comp
  remotes/origin/feature/native-comp-macos-fixes
  remotes/origin/scratch/native-comp-cl
  remotes/origin/scratch/native-comp-eln-caches
  remotes/origin/scratch/native-comp-gcc-driver-options
  remotes/origin/scratch/native-comp-macos-43532

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-20 14:20         ` Lars Ingebrigtsen
@ 2021-07-20 15:13           ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-07-20 15:24             ` Lars Ingebrigtsen
  2021-07-20 15:42             ` Eli Zaretskii
  0 siblings, 2 replies; 18+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-07-20 15:13 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Madhu, 49570

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Andrea Corallo <akrl@sdf.org> writes:
>
>> Actually I thought I removed feature/native-comp, is it still in place?
>
> I think it's gone from Savannah, but if I remember correctly, that
> doesn't make the branch go away in other repos?  And indeed:
>
> larsi@elva:~/src/emacs/trunk$ git branch -a | grep native
>   remotes/origin/feature/native-comp
>   remotes/origin/feature/native-comp-macos-fixes
>   remotes/origin/scratch/native-comp-cl
>   remotes/origin/scratch/native-comp-eln-caches
>   remotes/origin/scratch/native-comp-gcc-driver-options
>   remotes/origin/scratch/native-comp-macos-43532

I see, that's annoying but I guess we have no workaround for that :/

Thanks for checking.

  Andrea





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-20 15:13           ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-07-20 15:24             ` Lars Ingebrigtsen
  2021-07-20 15:42             ` Eli Zaretskii
  1 sibling, 0 replies; 18+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-20 15:24 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: Madhu, 49570

Andrea Corallo <akrl@sdf.org> writes:

> I see, that's annoying but I guess we have no workaround for that :/

Let's see...  The magical git command seems to be:

git fetch origin --prune

And that did make the native-comp branch disappear locally.  But it's
something each user has to do.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-20 15:13           ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-07-20 15:24             ` Lars Ingebrigtsen
@ 2021-07-20 15:42             ` Eli Zaretskii
  2021-07-20 16:22               ` Gregory Heytings
  1 sibling, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2021-07-20 15:42 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: larsi, 49570, enometh

> Cc: Madhu <enometh@meer.net>, 49570@debbugs.gnu.org
> Date: Tue, 20 Jul 2021 15:13:01 +0000
> From:  Andrea Corallo via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> Lars Ingebrigtsen <larsi@gnus.org> writes:
> 
> > Andrea Corallo <akrl@sdf.org> writes:
> >
> >> Actually I thought I removed feature/native-comp, is it still in place?
> >
> > I think it's gone from Savannah, but if I remember correctly, that
> > doesn't make the branch go away in other repos?  And indeed:
> >
> > larsi@elva:~/src/emacs/trunk$ git branch -a | grep native
> >   remotes/origin/feature/native-comp
> >   remotes/origin/feature/native-comp-macos-fixes
> >   remotes/origin/scratch/native-comp-cl
> >   remotes/origin/scratch/native-comp-eln-caches
> >   remotes/origin/scratch/native-comp-gcc-driver-options
> >   remotes/origin/scratch/native-comp-macos-43532
> 
> I see, that's annoying but I guess we have no workaround for that :/

The workaround is to tell people to say

   git remote prune origin

from time to time.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-20 15:42             ` Eli Zaretskii
@ 2021-07-20 16:22               ` Gregory Heytings
  2021-07-21 11:01                 ` Gregory Heytings
  0 siblings, 1 reply; 18+ messages in thread
From: Gregory Heytings @ 2021-07-20 16:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, 49570, enometh, Andrea Corallo


>>>> Actually I thought I removed feature/native-comp, is it still in 
>>>> place?
>>>
>>> I think it's gone from Savannah, but if I remember correctly, that 
>>> doesn't make the branch go away in other repos?
>>
>> I see, that's annoying but I guess we have no workaround for that :/
>
> The workaround is to tell people to say
>
>   git remote prune origin
>
> from time to time.
>

No, the workaround is to tell people to set

git config remote.origin.prune true





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-20 16:22               ` Gregory Heytings
@ 2021-07-21 11:01                 ` Gregory Heytings
  2021-07-21 12:46                   ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 18+ messages in thread
From: Gregory Heytings @ 2021-07-21 11:01 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, 49570, enometh, Andrea Corallo


>>>>> Actually I thought I removed feature/native-comp, is it still in 
>>>>> place?
>>>> 
>>>> I think it's gone from Savannah, but if I remember correctly, that 
>>>> doesn't make the branch go away in other repos?
>>> 
>>> I see, that's annoying but I guess we have no workaround for that :/
>> 
>> The workaround is to tell people to say
>>
>>   git remote prune origin
>> 
>> from time to time.
>
> No, the workaround is to tell people to set
>
> git config remote.origin.prune true
>

(Or, of course, to add a "git_config remote.origin.prune true" in 
autogen.sh.)





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-21 11:01                 ` Gregory Heytings
@ 2021-07-21 12:46                   ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-07-21 13:06                     ` Eli Zaretskii
  2021-07-21 13:11                     ` Gregory Heytings
  0 siblings, 2 replies; 18+ messages in thread
From: Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-07-21 12:46 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: Eli Zaretskii, Andrea Corallo, 49570, larsi, enometh

Gregory Heytings <gregory@heytings.org> writes:

>>>>>> Actually I thought I removed feature/native-comp, is it still in place?
>>>>> I think it's gone from Savannah, but if I remember correctly, that doesn't
>>>>> make the branch go away in other repos?
>>>> I see, that's annoying but I guess we have no workaround for that :/
>>> The workaround is to tell people to say
>>>
>>>   git remote prune origin
>>> from time to time.
>>
>> No, the workaround is to tell people to set
>>
>> git config remote.origin.prune true
>
> (Or, of course, to add a "git_config remote.origin.prune true" in autogen.sh.)

If pruning loses data it shouldn't be enabled by default in all
checkouts, e.g. if a branch is accidentally deleted by someone else then
simply fetching shouldn't propagate that deletion for others.  So IMO
the developer should decide when and how to enable this.  (Unless I've
misunderstood something.)

-- 
Basil





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-21 12:46                   ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-07-21 13:06                     ` Eli Zaretskii
  2021-07-22  7:30                       ` Gregory Heytings
  2021-07-21 13:11                     ` Gregory Heytings
  1 sibling, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2021-07-21 13:06 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: enometh, gregory, 49570, larsi, akrl

> From: "Basil L. Contovounesios" <contovob@tcd.ie>
> Cc: Eli Zaretskii <eliz@gnu.org>,  larsi@gnus.org,  49570@debbugs.gnu.org,
>   enometh@meer.net,  Andrea Corallo <akrl@sdf.org>
> Date: Wed, 21 Jul 2021 13:46:39 +0100
> 
> Gregory Heytings <gregory@heytings.org> writes:
> 
> >> No, the workaround is to tell people to set
> >>
> >> git config remote.origin.prune true
> >
> > (Or, of course, to add a "git_config remote.origin.prune true" in autogen.sh.)
> 
> If pruning loses data it shouldn't be enabled by default in all
> checkouts, e.g. if a branch is accidentally deleted by someone else then
> simply fetching shouldn't propagate that deletion for others.

Of course.  Don't worry, we won't do that.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-21 12:46                   ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-07-21 13:06                     ` Eli Zaretskii
@ 2021-07-21 13:11                     ` Gregory Heytings
  1 sibling, 0 replies; 18+ messages in thread
From: Gregory Heytings @ 2021-07-21 13:11 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: enometh, 49570, larsi, Andrea Corallo


>
> If pruning loses data it shouldn't be enabled by default in all 
> checkouts, e.g. if a branch is accidentally deleted by someone else then 
> simply fetching shouldn't propagate that deletion for others.  So IMO 
> the developer should decide when and how to enable this.  (Unless I've 
> misunderstood something.)
>

Pruning a branch does not lose data AFAIK, it only removes the pointer to 
the last commit of that branch.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-21 13:06                     ` Eli Zaretskii
@ 2021-07-22  7:30                       ` Gregory Heytings
  2021-07-22  8:52                         ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Gregory Heytings @ 2021-07-22  7:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Basil L. Contovounesios, enometh, 49570, larsi, akrl


>> If pruning loses data it shouldn't be enabled by default in all 
>> checkouts, e.g. if a branch is accidentally deleted by someone else 
>> then simply fetching shouldn't propagate that deletion for others.
>
> Of course.  Don't worry, we won't do that.
>

Why on earth won't you do that?  Deleting a branch (or removing a tag) 
does *not* lose any data / commit, it only removes a pointer / label to a 
particular commit.  For example anyone can still access the commits of the 
feature/native-comp branch with git checkout fa65c044f2.  Should someone 
accidentally delete a branch, it is easy to create it again.

Setting this config variable is much better than telling people to say 
"git remote prune origin" from time to time as you suggested, it does the 
same, except that it happens automatically.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-22  7:30                       ` Gregory Heytings
@ 2021-07-22  8:52                         ` Eli Zaretskii
  2021-07-22  9:10                           ` Gregory Heytings
  0 siblings, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2021-07-22  8:52 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: contovob, enometh, 49570, larsi, akrl

> Date: Thu, 22 Jul 2021 07:30:30 +0000
> From: Gregory Heytings <gregory@heytings.org>
> cc: "Basil L. Contovounesios" <contovob@tcd.ie>, enometh@meer.net, 
>     49570@debbugs.gnu.org, larsi@gnus.org, akrl@sdf.org
> 
> 
> >> If pruning loses data it shouldn't be enabled by default in all 
> >> checkouts, e.g. if a branch is accidentally deleted by someone else 
> >> then simply fetching shouldn't propagate that deletion for others.
> >
> > Of course.  Don't worry, we won't do that.
> 
> Why on earth won't you do that?

Because it isn't our place to second-guess when the user wants to
purge his/her local Git repository.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-22  8:52                         ` Eli Zaretskii
@ 2021-07-22  9:10                           ` Gregory Heytings
  2021-07-22  9:40                             ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Gregory Heytings @ 2021-07-22  9:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: contovob, enometh, 49570, larsi, akrl


>> Why on earth won't you do that?
>
> Because it isn't our place to second-guess when the user wants to purge 
> his/her local Git repository.
>

The word "prune" or "purge" are perhaps a bit unfortunate, they seem to 
imply that something serious is happening (as Basil thought).  Once again 
no actual data is removed, the only thing that is removed is a pointer to 
a particular commit.  Two people (Lars and Andrea) regretted upthread that 
removing a branch does not remove them in local repositories, and I 
remember at least one recent incident in which someone was using the 
native-comp branch after it had been removed.  Which is why I suggested to 
set that configuration variable... but I preach in the wilderness.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#49570: 28.0.50; url-http proxy connection-wait
  2021-07-22  9:10                           ` Gregory Heytings
@ 2021-07-22  9:40                             ` Eli Zaretskii
  0 siblings, 0 replies; 18+ messages in thread
From: Eli Zaretskii @ 2021-07-22  9:40 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: contovob, enometh, 49570, larsi, akrl

> Date: Thu, 22 Jul 2021 09:10:41 +0000
> From: Gregory Heytings <gregory@heytings.org>
> cc: contovob@tcd.ie, enometh@meer.net, 49570@debbugs.gnu.org, larsi@gnus.org, 
>     akrl@sdf.org
> 
> >> Why on earth won't you do that?
> >
> > Because it isn't our place to second-guess when the user wants to purge 
> > his/her local Git repository.
> >
> 
> The word "prune" or "purge" are perhaps a bit unfortunate, they seem to 
> imply that something serious is happening (as Basil thought).

We are miscommunicating.  Regardless of whether the loss of data is or
isn't significant, it is impolite, to say the least, for the project
to force users to do anything in their local clone that is not
absolutely necessary.  In particular, whether a branch should or
shouldn't be deleted in the local clone is for the user to decide, not
for us.  So we should not do that.

> Two people (Lars and Andrea) regretted upthread that removing a
> branch does not remove them in local repositories, and I remember at
> least one recent incident in which someone was using the native-comp
> branch after it had been removed.  Which is why I suggested to set
> that configuration variable... but I preach in the wilderness.

People who want this automatic pruning can configure that in their
personal ~/.gitconfig.  So the information about doing that
automatically is not lost; thank you for posting it.





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-07-22  9:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15  9:55 bug#49570: 28.0.50; url-http proxy connection-wait Madhu
2021-07-15 14:47 ` Lars Ingebrigtsen
2021-07-19 15:42   ` Lars Ingebrigtsen
2021-07-20  6:50     ` Madhu
2021-07-20 14:08       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-20 14:20         ` Lars Ingebrigtsen
2021-07-20 15:13           ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-20 15:24             ` Lars Ingebrigtsen
2021-07-20 15:42             ` Eli Zaretskii
2021-07-20 16:22               ` Gregory Heytings
2021-07-21 11:01                 ` Gregory Heytings
2021-07-21 12:46                   ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-21 13:06                     ` Eli Zaretskii
2021-07-22  7:30                       ` Gregory Heytings
2021-07-22  8:52                         ` Eli Zaretskii
2021-07-22  9:10                           ` Gregory Heytings
2021-07-22  9:40                             ` Eli Zaretskii
2021-07-21 13:11                     ` Gregory Heytings

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).