summaryrefslogtreecommitdiff
path: root/subvertpy
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2016-07-24 19:33:13 +0000
committerJelmer Vernooij <jelmer@jelmer.uk>2016-07-24 19:33:13 +0000
commit6c3d665108181a83896d412579b8470a79fc84d4 (patch)
treeaebc0204075a1441823de0b3910a8e83c4aa53bd /subvertpy
parent041588068ae3719d2ac572ea5774ff19a20720b7 (diff)
Reintroduce skip slash step.
Diffstat (limited to 'subvertpy')
-rw-r--r--subvertpy/_ra.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/subvertpy/_ra.c b/subvertpy/_ra.c
index 7d0bb0f0..37763b67 100644
--- a/subvertpy/_ra.c
+++ b/subvertpy/_ra.c
@@ -1591,6 +1591,9 @@ static PyObject *ra_get_file(PyObject *self, PyObject *args)
return NULL;
}
+ /* Yuck. Subversion doesn't like leading slashes.. */
+ while (*path == '/') path++;
+
stream = new_py_stream(temp_pool, py_stream);
if (stream == NULL) {
apr_pool_destroy(temp_pool);