Skip to content

Commit 52afd10

Browse files
Adding support for commits removal that happened on 10/7/25
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent a0cad50 commit 52afd10

2 files changed

Lines changed: 41 additions & 2 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"id": "5629348833",
3+
"type": "PushEvent",
4+
"actor": {
5+
"id": 41898282,
6+
"login": "github-actions[bot]",
7+
"display_login": "github-actions",
8+
"gravatar_id": "",
9+
"url": "https://api.github.com/users/github-actions[bot]",
10+
"avatar_url": "https://avatars.githubusercontent.com/u/41898282?"
11+
},
12+
"repo": {
13+
"id": 1081479337,
14+
"name": "Latowmwz/UniCore-FiveM-Cheat-StreamProff-Legit-Esp-Aimbot-GodMode-NoRecoil",
15+
"url": "https://api.github.com/repos/Latowmwz/UniCore-FiveM-Cheat-StreamProff-Legit-Esp-Aimbot-GodMode-NoRecoil"
16+
},
17+
"payload": {
18+
"repository_id": 1081479337,
19+
"push_id": 27920710020,
20+
"ref": "refs/heads/main",
21+
"head": "7d8e50a258d866f9972219dc087b9b1f09f7edc5",
22+
"before": "11345c8076ee6ecf2aec46aad7e11bfe37350536"
23+
},
24+
"public": true,
25+
"created_at": "2025-11-01T10:00:00Z",
26+
"org": {
27+
"id": 239671852,
28+
"login": "Latowmwz",
29+
"gravatar_id": "",
30+
"url": "https://api.github.com/orgs/Latowmwz",
31+
"avatar_url": "https://avatars.githubusercontent.com/u/239671852?"
32+
}
33+
}

git/git_reset_pull.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@ fi
77

88
cd "$1" || exit 2
99
git fetch origin || exit 3
10-
git reset --hard origin/master || exit 4
11-
git pull || exit 5
10+
DEFAULT_REF="$(git symbolic-ref -q refs/remotes/origin/HEAD || true)"
11+
if [ -n "$DEFAULT_REF" ]
12+
then
13+
git reset --hard "$DEFAULT_REF" || exit 4
14+
else
15+
git reset --hard origin/master || git reset --hard origin/main || exit 5
16+
fi
17+
git pull || exit 6

0 commit comments

Comments
 (0)