Skip to content

Conversation

derimagia
Copy link
Collaborator

Added bitbucket server support. I didn't add functionality for the prefix yet, i'd rather do that for all of them at once (Having a way to supply replacements for the "server" with the root path would take care of Custom Schemes (http vs https), Gitlab having a separate ssh vs http domain, and having custom roots). There any objections to this? Having separate options for every service sounds a little strange rather than supporting them everywhere

From the tests, gitopen.gitlab.port should no longer be needed since it just removes the protocol anyway i believe.

This also makes it so you can supply "BROWSER" on all platforms, or was there a reason why this wasn't allowed? Made testing slightly easier to allow it. I had to hardcode "echo" to not be exported to /dev/null since before it was like this for tests, if we add options using getopts a verbosity option would be nice here

@derimagia
Copy link
Collaborator Author

I also implemented #80 here, it looks like https://bitbucket.org/guyzmo/git-repo/src?at=bugfix/conftest_fix worked without the ref (or HEAD) at all

@paulirish
Copy link
Owner

paulirish commented Jun 18, 2017

I also implemented #80 here, [...]

@derimagia take look at these two results:

you can see a few changes in the second. (commits from 2016-12-28). Thats what leads me to believe there's not an easy fix for the "slash branches"

@paulirish paulirish changed the title Bitbucket server, and minor tweaks to BROWSER rewrite: Bitbucket server, and minor tweaks to BROWSER Jun 18, 2017
@paulirish
Copy link
Owner

@derimagia I like the look of the refactors in here. Very nice!
Also I'm going to rebase this branch against master. Will let you know when that's complete.

Having separate options for every service sounds a little strange rather than supporting them everywhere

+1 to this.

gitopen.gitlab.port should no longer be needed

yeah i'm hoping that's the case, it seemed like a stretch anyway.

This also makes it so you can supply "BROWSER" on all platforms, or was there a reason why this wasn't allowed?

no reason. i like having it available everywhere. this is much better.


I'll hold off on merging until we hear confirmation from @nwinkler about the details of the bb server stuff.
@nwinkler, FYI the tests in this PR are a little different than the test in #83 so we'll need your help to figure out what the I/O is.

@paulirish
Copy link
Owner

@derimagia fwiw you have some abc file/submodule in this PR. Looks like I'll clean that up and publish a new rewrite branch with this commit integrated.

@paulirish
Copy link
Owner

@derimagia so far it looks like the BROWSER=echo line in setup isn't making its way to inside of the @test blocks on Mac OS. :/

Changing it to export BROWSER=echo actually seems to be safe. Exports from inside of bats appear to not affect the real shell, so i believe this is safe. wdyt?

@derimagia
Copy link
Collaborator Author

Interesting,

rev="$(git rev-parse HEAD)"
has it parse the rev for the head even when the branch is different, maybe it didn't work before or something.

I added the ref to bitbucket urls, as expected this messes with the tests if we don't have a static commit, but i'll take a look at this later tonight

I removed the directory (thought I did it, whoops) and added the export. I'm using mac too, strange It must be doing something odd, we may be able to have just lifted it up but I'll just export it for now.

@paulirish
Copy link
Owner

@derimagia btw take a look at rewrite: https://github.com/paulirish/git-open/compare/rewrite

@paulirish
Copy link
Owner

@derimagia can you work from the rewrite branch? looks like the rev adjustments you made i don't have there. wanna add a commit for that? I'll open a PR just to track the overall thing.

@derimagia derimagia changed the base branch from derimagia+tests to rewrite June 19, 2017 02:30
@derimagia
Copy link
Collaborator Author

Changed the branch, it still has refute_output --partial "//" in it - I assumed you put there as a marker?

@paulirish
Copy link
Owner

perfect. this is great.

@paulirish paulirish merged commit 97e78e4 into paulirish:rewrite Jun 19, 2017
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.

2 participants