Signed-off-by: Robin Appelman <robin@icewind.nl>
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 + '/';