[
https://issues.apache.org/jira/browse/METRON-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16501879#comment-16501879
]
ASF GitHub Bot commented on METRON-1553:
----------------------------------------
Github user justinleet commented on the issue:
https://github.com/apache/metron/pull/1013
I didn't handle it particularly cleanly (I just nuked the dir if the user
was okay with it), and the way you're doing the other stuff is cleaner anyway,
so I'm fine with using this.
If we wanted to be more clean about it, we could have the directory just
pull if it already exists.
What I did was
```
# warn the user if the working directory exists
if [ -d "$WORK" ]; then
read -p " directory exists [$WORK]. overwrite existing repo? [yN] " -n
1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
rm -rf "$WORK/metron-$VERSION"
git clone $REPO "$WORK/metron-$VERSION"
```
I'm pretty neutral on if we want to take care of that here, or we want to
leave it as follow on. I'll leave that up to you.
+1
> Validate JIRA Script Error
> --------------------------
>
> Key: METRON-1553
> URL: https://issues.apache.org/jira/browse/METRON-1553
> Project: Metron
> Issue Type: Bug
> Reporter: Nick Allen
> Assignee: Nick Allen
> Priority: Major
>
> {code:java}
> $ ./validate-jira-for-release --version="0.4.3"
> --start=tags/apache-metron-0.4.2-release
> Cloning into 'metron-0.4.3'...
> remote: Counting objects: 39871, done.
> remote: Compressing objects: 100% (13140/13140), done.
> remote: Total 39871 (delta 18078), reused 37550 (delta 17019)
> Receiving objects: 100% (39871/39871), 54.34 MiB | 6.23 MiB/s, done.
> Resolving deltas: 100% (18078/18078), done.
> fatal: Not a git repository (or any of the parent directories): .git
> Fetching origin
> JIRA STATUS FIX VERSION ASSIGNEE FIX
> METRON-1549 Done Michael Miklavcic
> https://issues.apache.org/jira/browse/METRON-1549
> METRON-1541 To Do Unassigned https://issues.apache.org/jira/browse/METRON-1541
> ...{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)