Commit b9d5c9f
Improve fork check in Git hooks installation
This change ensures that the repository is named "lab0-c" both
locally and on GitHub while verifying that it is correctly forked
from "sysprog21/lab0-c." The validation now relies on the GitHub
API to check both the fork status and the parent repository name.
The previous approach using grep and sed for parsing has been replaced
with Git commands and awk to extract the repository owner and name.
Additional validation ensures the repository name is "lab0-c",
and fork verification has been improved by directly analyzing
the GitHub API response.
Change-Id: If5756d175c5bffeb9301de6bea304dd16dad9ab41 parent 1a8b5f4 commit b9d5c9f
1 file changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments