Auto-create Git repo on project creation (SZ-81)
rk@tigase.net opened 6 days ago

Description: Add backend logic so that creating a project in Sztab also initializes a Git repo in the internal Git volume (/gitrepos/.git or similar). This should:

  • Use JGit or shell out to git init
  • Ensure directory permissions are writable by backend
  • Optionally create a starter README.md and first commit

Acceptance Criteria:

  • Creating a project creates a corresponding Git repo in /gitrepos
  • The repo is initialized (i.e., .git exists), optionally with a README
  • Repo creation does not block project creation (fails gracefully if needed)
  • rk@tigase.net commented 6 days ago

    Subtasks:

    • Add GitService helper with initRepo(projectName) logic
    • Modify ProjectService#createProject(...) to invoke initRepo(...)
    • Handle collisions (project exists, repo already exists)
    • Optionally write README.md with project name
    • First commit (optional, basic Git command chaining)
issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Version
none
Sprints
n/a
Customer
n/a
Issue Votes (0)
Watchers (3)
Reference
SZ-81
Please wait...
Page is in error, reload to recover