ndbroadbent/scm_breeze — pull request #42 by alhad (2012-07-13 22:44:18+00:00)
Title: Avoid infinite loop in __gs_relative_path when $(PWD) contains a symlink...

[Resending pull request - I had closed my previous request because I thought "readlink -f" would fall over when given a non-symlinked path, but it handles it just fine]

When $(PWD) has a symlinked directory, in function __gs_relative_path, the comparison becomes between an absolute path and symlinked directory, resulting in the while loop never terminating, and "gs" for example getting stuck forever. The patch first resolves $(PWD) to an absolute path.

For example I have a ~/work directory that maps to the base of all my sources, and I typically do |cd ~/work| to go there.