All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH StGIT] Fix deleting series trash directory
@ 2007-05-03 18:29 Roland Dreier
  0 siblings, 0 replies; only message in thread
From: Roland Dreier @ 2007-05-03 18:29 UTC (permalink / raw)
  To: catalin.marinas; +Cc: git

When deleting a series, the loop that iterates through the files in
__trash_dir needs to add __trash_dir to the filename that it passes to
os.remove().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
---
diff --git a/stgit/stack.py b/stgit/stack.py
index b0a01dd..4e5ddb3 100644
--- a/stgit/stack.py
+++ b/stgit/stack.py
@@ -665,7 +665,7 @@ class Series(StgitObject):
 
             # remove the trash directory
             for fname in os.listdir(self.__trash_dir):
-                os.remove(fname)
+                os.remove(os.path.join(self.__trash_dir, fname))
             os.rmdir(self.__trash_dir)
 
             # FIXME: find a way to get rid of those manual removals

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-03 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03 18:29 [PATCH StGIT] Fix deleting series trash directory Roland Dreier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.