python-pygit2/0001-repository-SYMTYPE-is-constant-in-module-tarfile-not.patch
Igor Gnatenko 518e56814d Remove remote-calling unit tests
Changelog:
- Remove remote-calling unit tests
- repository: decode() linkname
- repository: SYMTYPE is constant in module tarfile, not in any class
2016-04-18 09:24:38 +02:00

27 lines
1.0 KiB
Diff

From a922ced80d635f2aef73bf7a647672b8df7a7914 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenko@redhat.com>
Date: Fri, 15 Apr 2016 14:07:33 +0200
Subject: [PATCH] repository: SYMTYPE is constant in module tarfile, not in any
class
Reference: https://github.com/libgit2/pygit2/issues/618
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
(cherry picked from commit 270dad8cd39b0f1dbb34256b389eb1bb458779de)
---
pygit2/repository.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pygit2/repository.py b/pygit2/repository.py
index e9bbdc6..88cc888 100644
--- a/pygit2/repository.py
+++ b/pygit2/repository.py
@@ -799,7 +799,7 @@ class Repository(_Repository):
info.mtime = timestamp
info.uname = info.gname = 'root' # just because git does this
if entry.mode == GIT_FILEMODE_LINK:
- info.type = archive.SYMTYPE
+ info.type = tarfile.SYMTYPE
info.linkname = content
info.mode = 0o777 # symlinks get placeholder
info.size = 0