Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 58595bb

Browse files
committed
Merge branch 'develop' of git://github.com/crissupb/quickstart-git2s3 into crissupb-develop
2 parents c383098 + 033b1db commit 58595bb

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
277 KB
Binary file not shown.

functions/source/GitPullS3/lambda_function.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
import logging
1616
import hmac
1717
import hashlib
18+
import distutils.util
1819

1920
# If true the function will not include .git folder in the zip
20-
exclude_git = True
21+
exclude_git = bool(distutils.util.strtobool(os.environ['ExcludeGit']))
2122

2223
# If true the function will delete all files at the end of each invocation, useful if you run into storage space
2324
# constraints, but will slow down invocations as each invoke will need to checkout the entire repo

templates/git2s3.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,10 @@
905905
},
906906
"Runtime": "python2.7",
907907
"Timeout": "300",
908+
"Environment": {
909+
"Variables":
910+
{ "ExcludeGit":"True" }
911+
},
908912
"Code": {
909913
"S3Bucket": {
910914
"Ref": "LambdaZipsBucket"

0 commit comments

Comments
 (0)