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

viewing a commit's file changes is broken #734

Closed
dbkaplun opened this issue Apr 15, 2016 · 9 comments · Fixed by #739
Closed

viewing a commit's file changes is broken #734

dbkaplun opened this issue Apr 15, 2016 · 9 comments · Fixed by #739
Assignees

Comments

@dbkaplun
Copy link

dbkaplun commented Apr 15, 2016

When I click on a previous commit bubble, I am able to see a list of files that were changed as well as the number of lines changed in each file. However, when I click on a file, I am unable to see the actual changes made to that file, although I can see the UI twitch on click and Event: Object {event: "graph-render"} appears in the JS console.

ungit@0.10.1

@waldyrious
Copy link

Same here.

@lfx
Copy link

lfx commented Apr 15, 2016

Using ungit@0.10.1, can't reproduce.

@dbkaplun, @waldyrious have you updated ungit recently?

@jung-kim
Copy link
Collaborator

I cannot reproduce this but if this is a pretty big bug.

Could you share client log, server log and the file name, and sha1 of diff you are trying to see?

@waldyrious
Copy link

This apparently only happens if I run ungit from a subdirectory of the repo, rather than its root. HTH :)

@campersau
Copy link
Collaborator

Ah, so I can reproduce it too.

The problem is that if you are in a subdirectory the filename is always relatative to the git directory but git diff wants an relative path from the executing directory.

For example if you are in the subdirectory components of the ungit project the git diff command looks like this: ungit/components> git diff a49c657cfa1bab61d740cf1fc3a72c5f15b2ed26^ a49c657cfa1bab61d740cf1fc3a72c5f15b2ed26 -- clicktests/test.generic.js
But it should have been this: ungit/components> git diff a49c657cfa1bab61d740cf1fc3a72c5f15b2ed26^ a49c657cfa1bab61d740cf1fc3a72c5f15b2ed26 -- ../clicktests/test.generic.js

(Notice the ../ in the filename.)

@jung-kim
Copy link
Collaborator

Yup, I will be closing #706 in lieu of this ticket.

I think this would be a great time to start using absolute path within ungit

@dbkaplun
Copy link
Author

dbkaplun commented Apr 18, 2016

I run ungit as a daemon, as outlined here (with a few insignificant modifications): https://github.com/FredrikNoren/ungit/wiki/Startup-Script-for-Mac-OS-X. If this is intended usage, ungit should not rely on the cwd at all in that case.

@jung-kim
Copy link
Collaborator

jung-kim commented May 1, 2016

@dbkaplun This now works for me and master branch should work for you but please feel free to reopen if this is still a problem.

@dbkaplun
Copy link
Author

dbkaplun commented May 2, 2016

Works now, thanks @codingtwinky!

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

Successfully merging a pull request may close this issue.

5 participants