Skip to content

Commit 14f86e5

Browse files
committed
fix: replace TEMPLATE_OWNER with owner variable and strip credentials
1 parent d671224 commit 14f86e5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resolver = "2"
77
[package]
88
name = "backend"
99
description = "Backend API and services for StackClass"
10-
version = "0.32.6"
10+
version = "0.32.7"
1111
edition = "2024"
1212

1313
default-run = "stackclass-server"

openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": {
77
"name": ""
88
},
9-
"version": "0.32.6"
9+
"version": "0.32.7"
1010
},
1111
"paths": {
1212
"/v1/courses": {

src/service/repository.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ impl RepoService {
9393
git::commit(workspace, "Initial commit from template").await?;
9494

9595
// ... and push to the remote repository
96-
let remote_url = format!("{git_server_endpoint}/{owner}/{repo}.git");
96+
let base_url = format!("{git_server_endpoint}/{owner}/{repo}.git");
9797
let password = crypto::password(git_committer_email, auth_secret);
98-
let remote_url = url::authenticate(&remote_url, TEMPLATE_OWNER, &password)?;
98+
let remote_url = url::authenticate(&base_url, owner, &password)?;
9999
git::add_remote(workspace, "origin", &remote_url).await?;
100100
git::push(workspace, "origin", "main").await?;
101101

102-
debug!("Successfully pushed template contents to repository: {}", remote_url);
102+
debug!("Successfully pushed template contents to repository: {}", base_url);
103103
Ok(())
104104
}
105105

0 commit comments

Comments
 (0)