|
|
mads
|
c387989f868f
|
5 years ago
|
|
git: fix upload-pack content-type with py3
It is checked earlier that git_command is one of two string constants, and with py3, things are much simpler and we don't have to consider string coersion.
Reported and debugged by Valentin.
|
|
|
mads
|
07cb7b42057e
|
5 years ago
|
|
|
|
|
mads
|
68eee0e7f4f5
|
6 years ago
|
|
isort: upgrade to 5.1.2
The changes to non-top-level imports seem nice.
|
|
|
mads
|
e63bcce18fef
|
6 years ago
|
|
|
|
|
mads
|
e35373106528
|
6 years ago
|
|
py3: remove safe_unicode in places where it no longer is needed because all strings (except bytes) already *are* unicode strings
(The remaining safe_unicode calls are still needed and can't just be removed, generally because we in these cases still have to convert from bytes to unicode strings.)
|
|
|
mads
|
e7dbe089e10d
|
6 years ago
|
|
|
|
|
mads
|
b075693b3214
|
6 years ago
|
|
pygrack: address webob AcceptValidHeader DeprecationWarning
Got warnings like: kallithea/tests/other/test_vcs_operations.py::TestVCSOperations::test_yada_yada .../site-packages/webob/acceptparse.py:649: DeprecationWarning: The behavior of AcceptValidHeader.__contains__ is currently being maintained for backward compatibility, but it will change in the future to better conform to the RFC. DeprecationWarning,
There *must* be a better alternative to pygrack ... for now, let's keep it alive.
|
|
|
mads
|
0a277465fddf
|
7 years ago
|
|
|
|
|
mads
|
cad3185863e0
|
7 years ago
|
|
middleware: simplify pygrack wrapping - there is no need for any extras
For symmetry, do the same in simplehg where it is completely unused.
|
|
|
Thomas De Schampheleire
|
19af3fef3b34
|
7 years ago
|
|
|
|
|
mads
|
e2519d2e74c2
|
8 years ago
|
|
|
|
|
Lars Kruse
|
7691290837d2
|
9 years ago
|
|
codingstyle: trivial whitespace fixes
Reported by flake8.
|
|
|
Andrew Shadura
|
d28545413343
|
10 years ago
|
|
git: include an LF at the end of the service advertisement (Fixes #230) This fixes hg-git/Dulwich and possibly other conservative Git clients, which do not ignore the absence of the LF. The original comment was a guess based on reverse engineering the protocol not specified in the documentation yet at that moment. Now that the documentation exists and states this explicitly, just do as it says.
|
|
|
mads
|
26bc2f02d9cd
|
9 years ago
|
|
|
|
|
Andrew Shadura
|
1e373254388c
|
10 years ago
|
|
git: include an LF at the end of the service advertisement (Fixes #230) This fixes hg-git/Dulwich and possibly other conservative Git clients, which do not ignore the absence of the LF. The original comment was a guess based on reverse engineering the protocol not specified in the documentation yet at that moment. Now that the documentation exists and states this explicitly, just do as it says.
|
|
|
Andrew Shadura
|
81ff11476d16
|
10 years ago
|
|
git: make sure repository path and name are Unicode strings
This is needed for supporting latest Dulwich version, but it also works with out supported version.
|
|
|
Andrew Shadura
|
c9f97be1927e
|
10 years ago
|
|
pygrack: refactor _get_fixedpath
This function strips the repository name and any slashes from the URL path, leaving the protocol command, like info/refs or git-{receive,upload}-pack.
Using .split() and .strip() for this purpose isn't entirely reliable and is entirely unreadable, so it's better to write it out, even if it's a bit verbose.
Also, error out in the unlikely case the path doesn't start with a slash and the repository name; that shouldn't happen normally.
|
|
|
Andrew Shadura
|
a90f8f33adeb
|
10 years ago
|
|
pygrack: add missing author and copyright information
This module is based on code from git_http_backend.py, adapted and integrated by Marcin Kuźmiński.
The protocol request handling comes from Daniel, the rest of the code seems to come from Marcin.
|
|
|
Mads Kiilerich
|
0210d0b769d4
|
11 years ago
|
|
|
|
|
Mads Kiilerich
|
d69aa464f373
|
11 years ago
|
|
cleanup: consistently use 'except ... as ...:'
Use the Python 2.6+ syntax instead of the old confusing 'except ..., ...' syntax.
|
|
|
Mads Kiilerich
|
0e2d450feb03
|
11 years ago
|
|
|
|
|
Bradley M. Kuhn
|
d1addaf7a91e
|
12 years ago
|
|
Second step in two-part process to rename directories. This is the actual directory rename.
|