From 1182b8b6bb5309df586857064eb6aec0d682bd92 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Apr 30 2018 23:02:39 +0000 Subject: Make git add work when --dirname is used --- diff --git a/fixrequires/local_repo.py b/fixrequires/local_repo.py index dae8c64..636e1a7 100644 --- a/fixrequires/local_repo.py +++ b/fixrequires/local_repo.py @@ -122,7 +122,7 @@ class LocalRepo(object): def git_add(self, filename): subprocess.check_output( - ['git', 'add', filename], + ['git', 'add', filename.relative_to(self.dirname)], cwd=self.dirname, stderr=subprocess.STDOUT) def git_commit(self, message):