{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771690183,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","get rid of tabs on repo page"]],"content":"Signed commit: get rid of tabs on repo page","id":"d34fb23385a23f479c683e76f5676356a11d63bcd0ecf71d25f1b85dbb0cfe57","sig":"1f6454f9961b9245d1e32f4a903ee9636201670491145d0185e95e7b7d33bf1027ac5b8e370070640e103740ab19e9915baa7755c6008fd32fe41e9cb86d33b8"}
@ -293,6 +301,33 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@@ -293,6 +301,33 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@ -633,7 +668,7 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@@ -633,7 +668,7 @@ Your commits will all be signed by your Nostr keys and saved to the event files
// If repo already exists, check if it has an announcement
@ -702,17 +737,54 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@@ -702,17 +737,54 @@ Your commits will all be signed by your Nostr keys and saved to the event files
try{
// Filter out localhost URLs and our own domain (we want external sources)
constexternalUrls=cloneUrls.filter(url=>{
// Filter and convert URLs:
// 1. Skip SSH URLs (git@... or ssh://) - convert to HTTPS when possible
// 2. Filter out localhost and our own domain
// 3. Prioritize HTTPS non-GRASP URLs, then GRASP URLs
// If still no remote URLs, but there are *any* clone URLs, try the first one
// This handles cases where the only clone URL is our own domain, but the repo doesn't exist locally yet
@ -728,10 +800,52 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@@ -728,10 +800,52 @@ Your commits will all be signed by your Nostr keys and saved to the event files
thrownewError(`Repos root directory at ${this.repoRoot} is not writable. Please fix permissions (e.g., chmod 755 ${this.repoRoot} or chown to the correct user).`);
},'Permission denied when creating repository directory');
thrownewError(`Permission denied: Cannot create repository directory at ${repoDir}. Please check that the server has write permissions to ${this.repoRoot}.`);
}
throwerror;
}
}
// Try to clone from the first available remote URL
@ -816,15 +930,23 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@@ -816,15 +930,23 @@ Your commits will all be signed by your Nostr keys and saved to the event files
// Repository exists in Nostr but is not cloned locally
// For file editing, we need a local clone
returnerror(404,'Repository is not cloned locally. To edit files, the repository must be cloned to the server first. Please use the "Clone to Server" button if you have unlimited access, or contact a server administrator.');