History

add sourcehut fetching

Noam Preil committed 5 years ago

Commit d61e0ed1 parent ab91cb41 file · +5 −1Browse files

Showing the changes to src.c (1 of 1 file). Show all

Unified · Split

src.c+5−1
@@ -51,7 +51,11 @@ fetchsrc(Src *src) · 50 unmodified lines
5151 mktemp(dir);
5252 d = -1;
5353 if(strncmp(src->url, "github://", 9) == 0){
54− url = smprint("git://github.com/%s", src->url+9);
54+ url = smprint("git://github.com/%s", src->url + 9);
55+ d = fetchgit(url, src->rev, dir);
56+ free(url);
57+ }else if(strncmp(src->url, "sourcehut://", 12) == 0){
58+ url = smprint("https://git.sr.ht/%s", src->url + 12);
5559 d = fetchgit(url, src->rev, dir);
5660 free(url);
5761 }else if(strncmp(src->url, "git://", 6) == 0){

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t