Commit fa44fa48d07a2b4a0afb6c3eb203fb4bfbf5bdb1

Stefan Sperling 2020-02-17T20:48:35

remove needless file and folder parameters from blame's commit diff links

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 1670677..fbf1ba3 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -3427,10 +3427,8 @@ gw_blame_cb(void *arg, int nlines, int lineno, struct got_object_id *id)
 			goto err;
 
 		if (asprintf(&href_diff,
-		    "?path=%s&action=diff&commit=%s&file=%s&folder=%s",
-		    a->gw_trans->repo_name, bline->id_str,
-		    a->gw_trans->repo_file, a->gw_trans->repo_folder ?
-		    a->gw_trans->repo_folder : "") == -1) {
+		    "?path=%s&action=diff&commit=%s",
+		    a->gw_trans->repo_name, bline->id_str) == -1) {
 			err = got_error_from_errno("asprintf");
 			goto err;
 		}