Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
BZ-1001561: normalizing ref tree names in order to have a only URI on…
Browse files Browse the repository at this point in the history
… notification events.
  • Loading branch information
porcelli committed Dec 12, 2013
1 parent 18b0928 commit c1e7a9b
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -1757,12 +1757,19 @@ private void notifyAllDiffs() {
}

private void notifyDiffs( final JGitFileSystem fs,
final String tree,
final String _tree,
final String sessionId,
final String userName,
final ObjectId oldHead,
final ObjectId newHead ) {

final String tree;
if ( _tree.startsWith( "refs/" ) ) {
tree = _tree.substring( _tree.lastIndexOf( "/" ) + 1 );
} else {
tree = _tree;
}

final String host = tree + "@" + fs.getName();
final Path root = JGitPathImpl.createRoot( fs, "/", host, false );

Expand Down

0 comments on commit c1e7a9b

Please sign in to comment.