diff --git a/travis2docker/git_run.py b/travis2docker/git_run.py
index <HASH>..<HASH> 100644
--- a/travis2docker/git_run.py
+++ b/travis2docker/git_run.py
@@ -117,5 +117,5 @@ class GitRun(object):
         return result
 
     def get_sha(self, revision):
-        result = self.run(["rev-parse", revision])
+        result = self.run(["rev-parse", revision]).strip(' \n')
         return result
diff --git a/travis2docker/travis2docker.py b/travis2docker/travis2docker.py
index <HASH>..<HASH> 100755
--- a/travis2docker/travis2docker.py
+++ b/travis2docker/travis2docker.py
@@ -68,7 +68,7 @@ class travis(object):
         name = self.get_folder_name(self.git_project)
         script_path = os.path.join(
             root_path, 'script',
-            name, self.get_folder_name(self.revision))
+            name, self.get_folder_name(self.revision), self.sha)
         return script_path
 
     def __init__(self, git_project, revision,
[REF] t2d: Make script path with name of sha