* [devel] git-merge-recursive fails on symlinks
@ 2006-10-10 19:09 Alexey Tourbin
2006-10-10 19:18 ` Dmitry V. Levin
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Tourbin @ 2006-10-10 19:09 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1458 bytes --]
/usr/bin/git-merge-recursive:
266 if stat.S_ISREG(mode):
267 try:
268 os.unlink(path)
269 except OSError:
270 pass
271 if mode & 0100:
272 mode = 0777
273 else:
274 mode = 0666
275 fd = os.open(path, os.O_WRONLY | os.O_TRUNC | os.O_CREAT, mode)
276 proc = subprocess.Popen(prog, stdout=fd)
277 proc.wait()
278 os.close(fd)
279 elif stat.S_ISLNK(mode):
280 linkTarget = runProgram(prog)
281 os.symlink(linkTarget, path)
282 else:
283 assert(False)
os.symlink на строке 281 у меня выпало с ошибкой типа path exists.
--- /usr/bin/git-merge-recursive- 2006-10-06 12:18:27 +0400
+++ /usr/bin/git-merge-recursive 2006-10-10 23:00:45 +0400
@@ -263,11 +263,11 @@ def updateFileExt(sha, mode, path, updat
die("Couldn't create directory", p, e.strerror)
prog = ['git-cat-file', 'blob', sha]
+ try:
+ os.unlink(path)
+ except OSError:
+ pass
if stat.S_ISREG(mode):
- try:
- os.unlink(path)
- except OSError:
- pass
if mode & 0100:
mode = 0777
else:
End of patch
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] git-merge-recursive fails on symlinks
2006-10-10 19:09 [devel] git-merge-recursive fails on symlinks Alexey Tourbin
@ 2006-10-10 19:18 ` Dmitry V. Levin
2006-10-10 19:31 ` Alexey Tourbin
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2006-10-10 19:18 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 240 bytes --]
On Tue, Oct 10, 2006 at 11:09:06PM +0400, Alexey Tourbin wrote:
> /usr/bin/git-merge-recursive:
Этот код на python в следующей версии git (которая собирается скоро выйти)
объявлен deprecated и заменён другим кодом на C.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] git-merge-recursive fails on symlinks
2006-10-10 19:18 ` Dmitry V. Levin
@ 2006-10-10 19:31 ` Alexey Tourbin
0 siblings, 0 replies; 3+ messages in thread
From: Alexey Tourbin @ 2006-10-10 19:31 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 421 bytes --]
On Tue, Oct 10, 2006 at 11:18:14PM +0400, Dmitry V. Levin wrote:
> On Tue, Oct 10, 2006 at 11:09:06PM +0400, Alexey Tourbin wrote:
> > /usr/bin/git-merge-recursive:
>
> Этот код на python в следующей версии git (которая собирается скоро выйти)
> объявлен deprecated и заменён другим кодом на C.
Сливать-то сейчас надо. Впрочем, если скоро собирается выйти, то мне
хватит и модифицированной версии в /usr/bin.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-10 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 19:09 [devel] git-merge-recursive fails on symlinks Alexey Tourbin
2006-10-10 19:18 ` Dmitry V. Levin
2006-10-10 19:31 ` Alexey Tourbin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git