Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] git-mv: fully detect 'directory moved into itself'

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:13

Josef Weidendorfer [off-list ref] writes:
This is a corrected version.

On Monday 28 November 2005 07:54, Matthias Urlichs wrote:
quoted
Hi, Josef Weidendorfer wrote:
quoted
+    if (($bad eq "") && ($dst =~ /^$src\//)) {
That should be
quoted
+    if (($bad eq "") && ($dst =~ /^\Q$src\E\//)) {
otherwise you will mistakenly match "foo-bar" with "foo.bar".
Ah, thanks.
You never end learning.
Why not use $safesrc you already have for this exact purpose?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help