From 1240f62bedb1a67f13ae7c8fd653b942b3f9afa2 Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Mon, 2 Sep 2024 08:56:55 +0930 Subject: [PATCH] fix: get full path for outgoing changes --- backend/app/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app/settings.py b/backend/app/settings.py index 9941c21..4da554d 100644 --- a/backend/app/settings.py +++ b/backend/app/settings.py @@ -90,6 +90,8 @@ def get_outgoing_changes(repo): is_staged = x != ' ' and x != '?' is_deleted = x == 'D' or y == 'D' + full_path = os.path.join(repo.working_dir, file_path) + if is_deleted: try: # Get the content of the file from the last commit