fix repo paths

This commit is contained in:
Barrett Ruth 2025-05-14 12:43:34 -04:00
parent 0d408d5dc3
commit ea4638a89e
2 changed files with 2 additions and 2 deletions

2
app.py
View file

@ -10,7 +10,7 @@ from flask import Flask, jsonify, render_template, send_from_directory
app = Flask(__name__, static_folder=None)
GIT_REPO_PATH = str(Path.home() / "dev")
EXPORT_MARKER = "git-daemon-export-ok"
EXPORT_MARKER = "readme.md"
if getpass.getuser() == "ec2-user":
GIT_REPO_PATH = "/srv/git"
EXPORT_MARKER = "git-daemon-export-ok"

View file

@ -61,7 +61,7 @@ function renderRepoDescription(repoLink) {
const cloneUrl = document.createElement("div");
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);
const viewNote = document.createElement("div");