From 42fc7dbe8a913dc2679379cbe561a551f73ab6e1 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 15 Dec 2009 10:43:17 -0500 Subject: [PATCH] prepare_update_file: assume file is relative to root directory --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2