Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Differentiate between owned/forked repos #2

Open
doismellburning opened this issue Aug 9, 2013 · 3 comments
Open

Differentiate between owned/forked repos #2

doismellburning opened this issue Aug 9, 2013 · 3 comments

Comments

@doismellburning
Copy link
Owner

No description provided.

@sigmavirus24
Copy link

Easiest way is to check the parent or source attributes. The former is where your current repository was forked from and source is the original repository since you could have a fork of a fork of a fork.

@doismellburning
Copy link
Owner Author

I've currently got --ignore-forks which results in a check on Repository.fork, but I'm thinking I should probably annotate the output in some way too - probably something like

ERROR: Could not find a license file in doismellburning/example (fork of example/example)

@sigmavirus24
Copy link

You don't have to do that in the general case but you could do that in the verbose case, e.g.,

~$ licecomb -v --ignore-forks doismellburning/fork
ERROR: ...

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

No branches or pull requests

2 participants