| Date: | 2016-08-23 03:34:02 (7 years 4 months ago) |
|---|---|
| Author: | Werner Almesberger |
| Commit: | 3381f9c7908cee34fa955f174825b67cda27048e |
| Message: | eeshow/file/git-file.c (related_only_repo): lookup repo again after
grafting Else, symlinks may confuse us. |
| Files: |
eeshow/file/git-file.c (1 diff) |
Change Details
| eeshow/file/git-file.c | ||
|---|---|---|
| 392 | 392 | if (!tmp) |
| 393 | 393 | return 0; |
| 394 | 394 | |
| 395 | /* | |
| 396 | * We now have a new path, but where does it lead ? If it contains a | |
| 397 | * symlink, we may end up in an entirely different repo, where new | |
| 398 | * adventures await. Let's find out ... | |
| 399 | */ | |
| 400 | vcs_git->repo = select_repo(tmp); | |
| 401 | if (vcs_git->repo) { | |
| 402 | free((char *) vcs_git->name); | |
| 403 | vcs_git->name = tmp; | |
| 404 | if (!strcmp(git_repository_path(vcs_git->related->repo), | |
| 405 | git_repository_path(vcs_git->repo))) | |
| 406 | return related_same_repo(vcs_git); | |
| 407 | else | |
| 408 | return related_other_repo(vcs_git); | |
| 409 | } | |
| 410 | ||
| 395 | 411 | vcs_git->repo = related->repo; |
| 396 | 412 | vcs_git->tree = related->tree; |
| 397 | 413 | |
Branches:
master
