never show '/' as path for conflicting file names

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-10-18 15:16:51 +02:00
parent 7ea06dacb1
commit 8eaf1956bb
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with 3 additions and 1 deletions

View File

@ -1259,7 +1259,9 @@
if (firstConflictPath.charAt(0) === '/') {
firstConflictPath = firstConflictPath.substr(1);
}
$firstConflict.find('td.filename span.innernametext').prepend($('<span></span>').addClass('conflict-path').text(firstConflictPath));
if (firstConflictPath && firstConflictPath !== '/') {
$firstConflict.find('td.filename span.innernametext').prepend($('<span></span>').addClass('conflict-path').text(firstConflictPath));
}
}
var conflictPath = path + '/';