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

The JSON parser is outputting the git log of the repo it's running on, under each repo #20

Open
dreamyguy opened this issue Mar 4, 2018 · 0 comments

Comments

@dreamyguy
Copy link
Owner

dreamyguy commented Mar 4, 2018

Even though the cli script manages to loop through the folders passed as an -d argument, the output being streamed into each repo belongs to the gitlogg repository.

In other words, when I add for instance the repository https://github.com/torvalds/linux as one of those under the directory I pass as -d argument, I get the following output:

{
  "repository": "linux",
  "commit_nr": 1,
  "commit_hash": "c7a397928f814f29028bccb281de60066395eaa1",
  "commit_hash_abbreviated": "c7a3979",
  "tree_hash": "e38dac0e625f63e877baa329204511ae490cd944",
  "tree_hash_abbreviated": "e38dac0",
  "parent_hashes": [],
  "parent_hashes_abbreviated": [],
  "author_name": "Wallace Sidhrée",
  "author_name_mailmap": "Wallace Sidhrée",
  "author_email": "[email protected]",
  "author_email_mailmap": "[email protected]",
  ...
}

The script catches the linux repository name (which is the name of the directory the repo is under), but the content of the output belongs to the gitlogg repo - in this case the first commit.

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

No branches or pull requests

1 participant