| |
@@ -49,10 +49,10 @@
|
| |
log.info('Previous commit for %s: %s'
|
| |
% (ref, f.read().replace('\n', '')))
|
| |
|
| |
- basename_refpath = os.path.basename(refpath)
|
| |
- if doref and not os.path.exists(basename_refpath):
|
| |
+ dirname_refpath = os.path.dirname(refpath)
|
| |
+ if doref and not os.path.exists(dirname_refpath):
|
| |
log.info("Creating the directories for the refpath")
|
| |
- os.makedirs(basename_refpath)
|
| |
+ os.makedirs(dirname_refpath)
|
| |
|
| |
if doref:
|
| |
log.info('Writing %s to %s' % (commitid, refpath))
|
| |
We want the directory, not the base filename.