Skip to content

Commit 3dd447d

Browse files
authored
Merge pull request #1098 from launchableinc/fix-send-file-name
send only file name instead of repo + file name
2 parents ef48125 + 936aac4 commit 3dd447d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

launchable/jar/exe_deploy.jar

-104 Bytes
Binary file not shown.

src/main/java/com/launchableinc/ingest/commits/FileChunkStreamer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected void writeTo(List<VirtualFile> files, OutputStream os) throws IOExcept
2424
tar.setLongFileMode(LONGFILE_POSIX);
2525

2626
for (VirtualFile f : files) {
27-
TarArchiveEntry e = new TarArchiveEntry("repo:"+f.repo()+"/"+f.path());
27+
TarArchiveEntry e = new TarArchiveEntry(f.path());
2828
e.setSize(f.size());
2929
tar.putArchiveEntry(e);
3030
f.writeTo(tar);

src/test/java/com/launchableinc/ingest/commits/FileChunkStreamerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public void basics() throws Exception {
3030
try (FileChunkStreamer fs = new FileChunkStreamer(content -> {
3131
switch(count[0]++) {
3232
case 0:
33-
assertThat(readEntries(content)).containsExactly("repo:test/foo.txt", "repo:test/bar.txt").inOrder();
33+
assertThat(readEntries(content)).containsExactly("foo.txt", "bar.txt").inOrder();
3434
break;
3535
case 1:
36-
assertThat(readEntries(content)).containsExactly("repo:test/zot.txt").inOrder();
36+
assertThat(readEntries(content)).containsExactly("zot.txt").inOrder();
3737
break;
3838
default:
3939
fail();

0 commit comments

Comments
 (0)