##// END OF EJS Templates
Fix handling of paths when run outside the repo....
Fix handling of paths when run outside the repo. The main problem was that dirstate.getcwd() returned just "", which was interpreted as "we're at the repo root". It now returns an absolute path. The util.pathto function was also changed to deal with the "cwd is an absolute path" case.

File last commit:

r2547:d75c68b5 default
r4230:c93562fb default
Show More
test-webraw.out
10 lines | 354 B | text/plain | TextLexer
200 Script output follows
content-type: text/plain
content-length: 157
content-disposition: filename=sometext.txt
This is just some random text
that will go inside the file and take a few lines.
It is very boring to read, but computers don't
care about things like that.
host - - [date] "GET /?f=f165dc289438;file=sometext.txt;style=raw HTTP/1.1" 200 -