We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b397e4f + b8a076b commit 9e317a9Copy full SHA for 9e317a9
nbgitpuller/handlers.py
@@ -154,8 +154,11 @@ async def get(self):
154
self.get_argument('subPath', '.')
155
app = self.get_argument('app', app_env)
156
parent_reldir = os.getenv('NBGITPULLER_PARENTPATH', '')
157
+ # Remove trailing slashes before determining default targetPath
158
+ # Otherwise we end up with targetpath being `.`, which always exists (given it is current
159
+ # working directory) and we end up with weird failures
160
targetpath = self.get_argument('targetpath', None) or \
- self.get_argument('targetPath', repo.split('/')[-1])
161
+ self.get_argument('targetPath', repo.rstrip('/').split('/')[-1])
162
163
if urlPath:
164
path = urlPath
0 commit comments