From: Jonas Fonseca Date: Tue, 15 Dec 2009 15:43:17 +0000 (-0500) Subject: prepare_update_file: assume file is relative to root directory X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=42fc7dbe8a913dc2679379cbe561a551f73ab6e1;p=tig.git prepare_update_file: assume file is relative to root directory --- diff --git a/tig.c b/tig.c index 602c867..77f0665 100644 --- a/tig.c +++ b/tig.c @@ -3081,7 +3081,7 @@ prepare_update_file(struct view *view, const char *name) { if (view->pipe) end_update(view, TRUE); - return io_open(&view->io, "%s", name); + return io_open(&view->io, "%s/%s", opt_cdup[0] ? opt_cdup : ".", name); } static bool