Skip to content
fossil-skin Changes To new-repo
Login

Changes To new-repo

Initial version of "new-repo"


























































































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# Creating a New Repository

Everything needed to add a repo to fossil.craftdesign.group.

## 1. Initialize the repo

```bash
fossil init /var/fossil/repos/<name>.fossil
```

## 2. Set the admin password

```bash
fossil user password dmestas <password> -R /var/fossil/repos/<name>.fossil
```

## 3. Create the meta sidecar

Controls the icon and description shown on the landing page. Two lines — emoji icon, then description:

```bash
printf '🚀\nShort description of the project' > /var/fossil/repos/<name>.meta
```

If no `.meta` file exists, the repo will appear with a `📦` icon and no description.

## 4. Run apply.py

Skins the repo, sets public access policy (wiki-only), and regenerates the landing page:

```bash
python3 /var/fossil/skin/apply.py
```

## 5. Add to the login group

Allows single sign-on across all repos — log in once, authenticated everywhere:

```bash
fossil login-group join /var/fossil/repos/edgesync.fossil \
  -R /var/fossil/repos/<name>.fossil
```

Verify it joined:

```bash
fossil login-group -R /var/fossil/repos/<name>.fossil
```

## 6. Create the wiki home page

Sets what visitors see when they land on the repo:

```bash
fossil wiki create index -mimetype text/x-markdown \
  -R /var/fossil/repos/<name>.fossil << 'WIKI'
# <name>

Description of the project.

## Clone

```
fossil clone https://[email protected]/<name>/ <name>.fossil
```
WIKI
```

## 7. Done

The repo is live at `https://fossil.craftdesign.group/<name>/` and appears on the landing page automatically.

---

## Full one-liner checklist

```bash
NAME=myrepo
PASS=changeme
DESC="What this repo does"
ICON="📦"

fossil init /var/fossil/repos/$NAME.fossil
fossil user password dmestas $PASS -R /var/fossil/repos/$NAME.fossil
printf "$ICON\n$DESC" > /var/fossil/repos/$NAME.meta
python3 /var/fossil/skin/apply.py
fossil login-group join /var/fossil/repos/edgesync.fossil \
  -R /var/fossil/repos/$NAME.fossil
```