-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit f370589
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.1 parent e83f2fb commit f370589
1 file changed
+14
-14
lines changedLines changed: 14 additions & 14 deletions
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