Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cwd for show-refs command #3796

Merged
merged 1 commit into from
Sep 6, 2018
Merged

Conversation

emkll
Copy link
Contributor

@emkll emkll commented Sep 6, 2018

Status

Ready for review

Description of Changes

Fixes #3795

When executed in the context of the updater gui, the working directory for the securedrop-admin script was /, resulting in an error stating that the current working directory (or any of its parents) was a git repository.
This fix will ensure the SecureDrop updater GUI will not erroneously return a signature verification failure.

Testing

  1. checkout this branch
  2. run updater GUI and click on Update Now
  3. observe tag 0.9.0 checked out and verified

Deployment

Deployed to admin workstations via git, will require admins to manually type securedrop-admin update

Checklist

If you made changes to the server application code:

  • Linting (make ci-lint) and tests (make -C securedrop test) pass in the development container

If you made changes to securedrop-admin:

  • Linting and tests (make -C admin test) pass in the admin development container

If you made non-trivial code changes:

  • I have written a test plan and validated it for this PR

When executed in the context of the updater gui, the working directory
for the updater script that was called was `/`, resulting in an error stating that the current working directory (or any of its parents) was a git repository.
This fix will ensure the SecureDrop updater GUI will not erroneously return a signature verification failure.
Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This resolves the issue for me and I'm able to complete an upgrade to the latest SecureDrop workstation code in Tails 3.9 without issue. We'll make a patch release (0.9.1) with this fix today.

@redshiftzero redshiftzero merged commit ebf3d39 into develop Sep 6, 2018
@redshiftzero redshiftzero deleted the 3795-fix-updater-cwd branch September 6, 2018 16:07
@zenmonkeykstop
Copy link
Contributor

Tested as described, 0.9.0 tag checked out and verified. Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updater GUI returns error when updating to 0.9.0
3 participants