Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ff28e5

Browse files
committed
Update regarding Issue #52
1 parent 0d539a8 commit 3ff28e5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
DESCRIPTION = "automatic SQL injection and database takeover tool"
2525
SITE = "http://sqlmap.org"
2626
ISSUES_PAGE = "https://github.com/sqlmapproject/sqlmap/issues/new"
27+
GIT_REPOSITORY = "git://github.com/sqlmapproject/sqlmap.git"
2728
2829

2930
# minimum distance of ratio from kb.matchRatio to result in True

lib/core/update.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from lib.core.data import conf
1818
from lib.core.data import logger
1919
from lib.core.data import paths
20+
from lib.core.settings import GIT_REPOSITORY
2021
from lib.core.settings import IS_WIN
2122
from lib.core.settings import REVISION
2223
from lib.core.settings import UNICODE_ENCODING
@@ -42,7 +43,7 @@ def update():
4243
logger.debug(debugMsg)
4344

4445
dataToStdout("\r[%s] [INFO] update in progress " % time.strftime("%X"))
45-
process = execute("git pull %s" % rootDir, shell=True, stdout=PIPE, stderr=PIPE)
46+
process = execute("git pull %s HEAD" % GIT_REPOSITORY, shell=True, stdout=PIPE, stderr=PIPE)
4647
pollProcess(process, True)
4748
stdout, stderr = process.communicate()
4849
success = not process.returncode

0 commit comments

Comments
 (0)