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

Sorry, you've not configured an origin remote or passed a repo_url config value #67

Open
jhonatanTeixeira opened this issue Dec 20, 2016 · 2 comments

Comments

@jhonatanTeixeira
Copy link

jhonatanTeixeira commented Dec 20, 2016

i've got this config:

{
    "app_name": "processo",
    "logo": "https://github.com/rafinskipg/git-changelog/raw/master/images/git-changelog-logo.png",
    "intro": "Projeto de controle",
    "branch" : "master",
    "repo_url": "git@xxxxxx:xxxxxx/processo.git",
    "version" : "v1.0.0",
    "file": "CHANGELOG.md",
    "sections": [
        {
            "title": "Correções de Bug",
            "grep": "(\[FIX\])|correção/i"
        },
        {
            "title": "Features",
            "grep": "\[FEATURE\]"
        },
        {
            "title": "Erro 500",
            "grep": "\[500\]"
        },
        {
            "title": "Refactoração",
            "grep": "\[REFACTOR\]"
        },
        {
            "title": "Test",
            "grep": "\[TEST\]"
        },
    ]
}

i use this command:

git changelog -r [email protected]:xxxxxxx/processo.git

and i get this output:

Executing git changelog:
  - With URL [email protected]:xxxxxxx/processo.git
Found changelog rc
Sorry, you've not configured an origin remote or passed a `repo_url` config value

what am i doing wrong?

@rafinskipg
Copy link
Owner

Hello @jhonatanTeixeira can you print the output you get from running it with --debug ?

Adding a remote repository log without being in the current folder of the repository doesn't work.

Internally we use git log command, on the current repository. So you must run the command in the current repository folder.

For ex:

cd myProject
git-changelog --debug

Git does not provide the functionality of retrieving the history from a repository you have not downloaded.
In order to have the feature of logging remote repositories without being in a repo folder some code has to be written.
I think in terms of functionality it should do something like this:

  • Whenever a user types -r REPO_URL on a folder that it's not a git repo:
    • Create a folder called .tmp (in the git-changelog directory?)
    • Go into that folder and clone the remote repo
    • Do the git log in that repo
    • Remove the folder .tmp after some time.
      This will be time expensive.. but i think its a cool feature.

@rafinskipg
Copy link
Owner

#68

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

2 participants