git://git.nikiroo.be
/
gofetch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a2f4ed
)
...
author
Niki Roo
<niki@nikiroo.be>
Tue, 8 Aug 2017 17:41:23 +0000
(19:41 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Tue, 8 Aug 2017 17:41:23 +0000
(19:41 +0200)
src/be/nikiroo/gofetch/Fetcher.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/gofetch/Fetcher.java
b/src/be/nikiroo/gofetch/Fetcher.java
index b24d3d11ecadbefee0cc697b5ac29ccbf7b8fd72..7490037c201929aba38297d809e7f9c917af1e95 100644
(file)
--- a/
src/be/nikiroo/gofetch/Fetcher.java
+++ b/
src/be/nikiroo/gofetch/Fetcher.java
@@
-229,8
+229,8
@@
public class Fetcher {
private String getLink(String name, String ref, boolean index, boolean html) {
if (!html) {
- return new StringBuilder().append(
(index ? "1" : "0") + name
)
- .append(
"\t").append("1"
+ ref) //
+ return new StringBuilder().append(
"1" + name).append("\t"
)
+ .append(
(index ? "1" : "0")
+ ref) //
.append("\t").append(hostname) //
.append("\t").append(Integer.toString(port)) //
.append("\r\n").toString();