Skip to content

Conversation

@lyrixx
Copy link
Member

@lyrixx lyrixx commented Feb 11, 2013

  • Use specific exception (not every where)
  • Fixed some random typos
  • Fixed a Weird bug. Please the the commit fe90056

@lyrixx
Copy link
Member Author

lyrixx commented Feb 11, 2013

BTW, IMHO, It should be done everywhere

@ubermuda
Copy link
Contributor

👍 about that, makes debugging much easier

@lyrixx
Copy link
Member Author

lyrixx commented Feb 12, 2013

Last commit is not related to this pr ...

And I changed the format or the log line of 'run command ...'
To be able to copy/past the log line and execute the command.
If we use gitlib (located in /a/b/gitlib) and try to inspect a
project located in /a/b ; Gitlib will not be able to get the log
since it run a command like:

    git log --working-dir /a/b/.git --working-tree /a/b log --format=%H -n 1 THEHASH -- PATH

so PATH does not exist in /a/b/gitlib/ (ie /a/b/gitlib/PATH).
so the command fails.

So i fixed it by preprend the working-dir.

Note: I think we should update all commands that use a path in arguments.

ping @alexandresalome
@alexandresalome
Copy link
Member

OK, I managed to reproduce it. I read documentation of git, but found no information about paths, if they should be relative or absolute.

Good for you to merge?

@lyrixx
Copy link
Member Author

lyrixx commented Feb 15, 2013

Every things works from here.

Good to merge :)

alexandresalome pushed a commit that referenced this pull request Feb 15, 2013
@alexandresalome alexandresalome merged commit f8c6084 into master Feb 15, 2013
@alexandresalome alexandresalome deleted the feat-closest-exception branch February 15, 2013 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants