Skip to content

Commit

Permalink
fix: creation of commit directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeetpatil committed Nov 4, 2020
1 parent aabd7da commit 8d64d3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kaybee/internal/tasks/data/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export:
vulnerability_id=$4
source_tar_path=$5
[ -d $vulnerability_id/$commit_id ] || mkdir -p $vulnerability_id/$commit_id
if [ -f $source_tar_path/changed-source-code.tar.gz ]
then
echo "{" > $vulnerability_id/$commit_id/metadata.json
Expand All @@ -123,8 +124,6 @@ export:
timestamp=$(git -C $repo_dir show --no-patch --no-notes --pretty='%at' $commit_id)
[ -d $vulnerability_id/$commit_id ] || mkdir -p $vulnerability_id/$commit_id
echo "{" > $vulnerability_id/$commit_id/metadata.json
echo " \"repository\" : \"$repo_url\"," >> $vulnerability_id/$commit_id/metadata.json
echo " \"branch\" : \"$branch\"," >> $vulnerability_id/$commit_id/metadata.json
Expand Down

0 comments on commit 8d64d3d

Please sign in to comment.