fix repo paths
This commit is contained in:
parent
0d408d5dc3
commit
ea4638a89e
2 changed files with 2 additions and 2 deletions
2
app.py
2
app.py
|
|
@ -10,7 +10,7 @@ from flask import Flask, jsonify, render_template, send_from_directory
|
||||||
app = Flask(__name__, static_folder=None)
|
app = Flask(__name__, static_folder=None)
|
||||||
|
|
||||||
GIT_REPO_PATH = str(Path.home() / "dev")
|
GIT_REPO_PATH = str(Path.home() / "dev")
|
||||||
EXPORT_MARKER = "git-daemon-export-ok"
|
EXPORT_MARKER = "readme.md"
|
||||||
if getpass.getuser() == "ec2-user":
|
if getpass.getuser() == "ec2-user":
|
||||||
GIT_REPO_PATH = "/srv/git"
|
GIT_REPO_PATH = "/srv/git"
|
||||||
EXPORT_MARKER = "git-daemon-export-ok"
|
EXPORT_MARKER = "git-daemon-export-ok"
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ function renderRepoDescription(repoLink) {
|
||||||
|
|
||||||
const cloneUrl = document.createElement("div");
|
const cloneUrl = document.createElement("div");
|
||||||
cloneUrl.style.marginTop = "15px";
|
cloneUrl.style.marginTop = "15px";
|
||||||
cloneUrl.innerHTML = `<code>git clone \nhttps://git.barrettruth.com/git/${repoName}</code>`;
|
cloneUrl.innerHTML = `<code>git clone \nhttps://git.barrettruth.com/git/${repoName}.git</code>`;
|
||||||
|
|
||||||
post.appendChild(cloneUrl);
|
post.appendChild(cloneUrl);
|
||||||
const viewNote = document.createElement("div");
|
const viewNote = document.createElement("div");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue