stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From im...@apache.org
Subject [2/3] stratos git commit: fixed git clone issue by removing unwanted space from password
Date Sat, 01 Aug 2015 02:29:15 GMT
fixed git clone issue by removing unwanted space from password


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/88321ad4
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/88321ad4
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/88321ad4

Branch: refs/heads/master
Commit: 88321ad4bbffabf1d3889db3cc61929fcb2881db
Parents: 30dcd78
Author: WSO2 Cloud <cloud@wso2.com>
Authored: Wed Jul 29 10:15:46 2015 +0530
Committer: Imesh Gunaratne <imesh@apache.org>
Committed: Sat Aug 1 07:59:00 2015 +0530

----------------------------------------------------------------------
 .../cartridge.agent/modules/artifactmgt/git/agentgithandler.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/88321ad4/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/artifactmgt/git/agentgithandler.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/artifactmgt/git/agentgithandler.py
b/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/artifactmgt/git/agentgithandler.py
index c23d33b..c00e07e 100644
--- a/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/artifactmgt/git/agentgithandler.py
+++ b/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/modules/artifactmgt/git/agentgithandler.py
@@ -255,15 +255,15 @@ class AgentGitHandler:
                         return repo_info.repo_url
                     else:
                         # credentials wrong, need to replace
-                        return str(url_split[0] + "//" + repo_info.repo_username + ":" +
repo_info.repo_password + "@" +
+                        return str(url_split[0] + "//" + repo_info.repo_username + ":" +
repo_info.repo_password.strip() + "@" +
                                    at_split[1])
                 else:
                     # only username is provided, need to include password
-                    return str(url_split[0] + "//" + repo_info.repo_username + ":" + repo_info.repo_password
+ "@" +
+                    return str(url_split[0] + "//" + repo_info.repo_username + ":" + repo_info.repo_password.strip()
+ "@" +
                                at_split[1])
             else:
                 # no credentials in the url, need to include username and password
-                return str(url_split[0] + "//" + repo_info.repo_username + ":" + repo_info.repo_password
+ "@" +
+                return str(url_split[0] + "//" + repo_info.repo_username + ":" + repo_info.repo_password.strip()
+ "@" +
                            url_split[1])
         # no credentials specified, return as is
         return repo_info.repo_url


Mime
View raw message