branch: elpa/dockerfile-mode
commit fd7bba9f4a892fcbe17514a76a7e0805b38acb68
Author: Steve Purcell <st...@sanityinc.com>
Commit: Steve Purcell <st...@sanityinc.com>

    default-directory is the easier way to get the working directory
---
 dockerfile-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dockerfile-mode.el b/dockerfile-mode.el
index ef0b7a3733..642711e8fe 100644
--- a/dockerfile-mode.el
+++ b/dockerfile-mode.el
@@ -131,7 +131,7 @@ If prefix arg NO-CACHE is set, don't cache the image."
         (shell-quote-argument image-name)
         (dockerfile-build-arg-string)
         (shell-quote-argument (dockerfile-standard-filename 
(buffer-file-name)))
-        (shell-quote-argument (dockerfile-standard-filename 
(file-name-directory (buffer-file-name)))))
+        (shell-quote-argument (dockerfile-standard-filename 
default-directory)))
        (format "*docker-build-output: %s *" image-name))
     (print "dockerfile-image-name must be a string, consider surrounding it 
with double quotes")))
 

Reply via email to