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

Commit 35e3039

Browse files
Remove relative repository env var (#186)
PR-URL: #186
1 parent 94fd299 commit 35e3039

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ var initConfig = function(config_) {
5959
if (process.env.hasOwnProperty('GCLOUD_DEBUG_LOGLEVEL')) {
6060
config.logLevel = process.env.GCLOUD_DEBUG_LOGLEVEL;
6161
}
62-
if (process.env.hasOwnProperty('GCLOUD_DEBUG_REPO_APP_PATH')) {
63-
config.appPathRelativeToRepository =
64-
process.env.GCLOUD_DEBUG_REPO_APP_PATH;
65-
}
6662
if (process.env.hasOwnProperty('GAE_MODULE_NAME')) {
6763
config.serviceContext = config.serviceContext || {};
6864
config.serviceContext.service = process.env.GAE_MODULE_NAME;

test/standalone/test-env-relative-repository-path.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
var path = require('path');
2020

2121
process.env.GCLOUD_PROJECT = 0;
22-
process.env.GCLOUD_DEBUG_REPO_APP_PATH = path.join(path.sep, 'my', 'project', 'root');
2322

2423
var assert = require('assert');
2524
var agent = require('../..')();
@@ -29,7 +28,9 @@ var h = require('../fixtures/a/hello.js');
2928
describe('repository relative paths', function() {
3029

3130
before(function(done) {
32-
agent.startAgent();
31+
agent.startAgent({
32+
appPathRelativeToRepository: path.join(path.sep, 'my', 'project', 'root')
33+
});
3334
setTimeout(function() {
3435
// Wait for v8debug api to initialize.
3536
api = agent.private_.v8debug_;

0 commit comments

Comments
 (0)