Update misc.py

This commit is contained in:
Abhi
2024-01-31 22:06:00 +05:30
committed by GitHub
parent 0ed833d7b0
commit 5d9b15d258

View File

@@ -43,7 +43,7 @@ except git.exc.InvalidGitRepositoryError:
"origin", "https://github.com/The-MoonTg-project/Moon-Userbot"
)
origin.fetch()
repo.create_head("master", origin.refs.master)
repo.create_head("main", origin.refs.master)
repo.heads.master.set_tracking_branch(origin.refs.master)
repo.heads.master.checkout(True)
gitrepo = git.Repo(".")