Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue updating contributor graph #31

Open
czfrance opened this issue Aug 10, 2022 · 2 comments
Open

Issue updating contributor graph #31

czfrance opened this issue Aug 10, 2022 · 2 comments

Comments

@czfrance
Copy link

Hi!

I've run the python script specified in the README (after entering in the appropriate info). While running the script, the commits from the original repo appear in the logs, but when I go to push the mock repo, the contributor graph doesn't appear.

@danulqua
Copy link

@czfrance could you help me, please? Seems like script imports nothing to my mock repository.
That's how I configured paths to my repos:

# Your private repo or Bitbucket repo
repo = git.Repo("/Users/danil0110/dev/mock-repos/mumidis-front")
# Your mock repo
mock_repo = git.Repo("/Users/danil0110/dev/mock-repos/mock-repo")

If I run my script, I see logs which analyse every commit and saying that it doesn't include commits that was created not by me.
But when I enter my mock-repo and write git push - I keep getting this error:

> git push -u origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/danil0110/mock-repo.git'

Also, I opened this folder in VSCode to look through commits in the Git tab, and there were no commits, repo was empty.

@Lukas238
Copy link

Lukas238 commented Mar 2, 2023

Hi!

I've run the python script specified in the README (after entering in the appropriate info). While running the script, the commits from the original repo appear in the logs, but when I go to push the mock repo, the contributor graph doesn't appear.

Hi, I got a similar issue myself. I was uploading my mock-repo from my company issued computer. So in this machine I have my company email configured as my primary git user email.

This means that the mock-repo got pushed with my company email as user (you can change the email user for an individual repo, but I forgot to do so). And after I pushed this to github, no new contributions were showing up.

The fix for me was to add my company email as a secondary email on my github account, on Settings\Public profile\Public email menu.

Of course, you can simple change the email address on your local mock-repo as well with this command: git config user.email "your_email@abc.example".

Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants