Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions release/share/git-webui/webui/js/git-webui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,7 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
var item = $('<a class="list-group-item">').appendTo(fileList)[0];
item.status = status;
line = line.substr(3);
line = line.substr(3).replaceAll('"', '');
var splitted = line.split(" -> ");
if (splitted.length > 1) {
item.model = splitted[1];
Expand Down
4 changes: 3 additions & 1 deletion src/libexec/git-core/git-webui
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ class WebUiRequestHandler(SimpleHTTPRequestHandler):


def is_view_only(self):
if "*" in allowed_hosts:
return False
host = self.headers.get("Host", "").split(":")[0]
return host not in allowed_hosts

Expand Down Expand Up @@ -283,7 +285,7 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(description = "Simple HTTP server for git webui")
parser.add_argument("--port", type = int, help = "server port")
parser.add_argument("--repo-root", help = "repository root path. By default goes up a dir until a '.git' directory is found")
parser.add_argument("--allow-hosts", help = "what other host(s) are allowed to have write access")
parser.add_argument("--allow-hosts", help = "what other host(s) are allowed to have write access. Use '*' to allow acces from all hosts.")
parser.add_argument("--no-browser", dest = "nobrowser", action = 'store_const', const = True, help = "do not start web browser")
parser.add_argument("--host", help = "the host webui listens on (default is all)")

Expand Down
5 changes: 5 additions & 0 deletions src/share/git-webui/webui/css/git-webui.less
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ body {
content: url(/img/daemon.svg);
}

#sidebar-sync h4:before {
content: url(/img/mail-send-receive-symbolic.svg);
}

#sidebar-local-branches, #sidebar-remote-branches {
h4:before {
content: url(/img/branch.svg);
Expand Down Expand Up @@ -611,6 +615,7 @@ body {
}
}


#commit-explorer-view {
#commit-explorer-navigator-view {
.panel {
Expand Down
34 changes: 34 additions & 0 deletions src/share/git-webui/webui/img/folder-download-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/share/git-webui/webui/img/mail-send-receive-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/share/git-webui/webui/img/pull.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading